Remove GTK3 "widget.show()" leftovers

This commit is contained in:
Rafostar
2020-10-16 10:59:00 +02:00
parent 12c1251c9b
commit d0eb28b207
2 changed files with 11 additions and 22 deletions

View File

@@ -81,9 +81,6 @@ class ClapperInterface extends Gtk.Grid
this.overlay.set_child(this._player.widget);
this.overlay.add_overlay(this.revealerTop);
this.overlay.add_overlay(this.revealerBottom);
this.overlay.show();
this._player.widget.show();
}
addHeaderBar(headerBar, defaultTitle)
@@ -210,7 +207,7 @@ class ClapperInterface extends Gtk.Grid
if(!parsedInfo[`${type}Tracks`].length) {
if(this.controls[`${type}TracksButton`].visible) {
debug(`hiding popover button without contents: ${type}`);
this.controls[`${type}TracksButton`].hide();
this.controls[`${type}TracksButton`].set_visible(false);
}
continue;
}
@@ -221,7 +218,7 @@ class ClapperInterface extends Gtk.Grid
);
if(!this.controls[`${type}TracksButton`].visible) {
debug(`showing popover button with contents: ${type}`);
this.controls[`${type}TracksButton`].show();
this.controls[`${type}TracksButton`].set_visible(true);
}
}