mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 16:31:58 +02:00
Remove GTK3 "widget.show()" leftovers
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user