We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 78b19c7 + aa453a2 commit 5a0e5fcCopy full SHA for 5a0e5fc
js/palette.js
@@ -538,17 +538,16 @@ function Palettes() {
538
this.hideSearchWidget(true);
539
540
for (var i in this.dict) {
541
- if (this.dict[i] === this.dict[name]) {
542
- this.dict[name]._resetLayout();
543
- this.dict[name].showMenu();
544
- this.dict[name]._showMenuItems();
545
- } else {
+ if (this.dict[i] !== this.dict[name]) {
546
if (this.dict[i].visible) {
547
this.dict[i].hideMenu();
548
this.dict[i]._hideMenuItems();
549
}
550
551
+ this.dict[name]._resetLayout();
+ this.dict[name].showMenu();
+ this.dict[name] ._showMenuItems();
552
};
553
554
this._showMenus = function() {
0 commit comments