Do not try to uninhibit when app is closing

This commit is contained in:
Rafostar
2021-01-05 23:42:23 +01:00
parent 234a44a34a
commit 2cbabe2887

View File

@@ -369,7 +369,6 @@ class ClapperPlayer extends PlayerBase
if(state !== GstPlayer.PlayerState.BUFFERING) { if(state !== GstPlayer.PlayerState.BUFFERING) {
const root = player.widget.get_root(); const root = player.widget.get_root();
Misc.inhibitForState(state, root);
if(this.quitOnStop) { if(this.quitOnStop) {
if(state === GstPlayer.PlayerState.STOPPED) if(state === GstPlayer.PlayerState.STOPPED)
@@ -377,6 +376,7 @@ class ClapperPlayer extends PlayerBase
return; return;
} }
Misc.inhibitForState(state, root);
} }
const clapperWidget = player.widget.get_ancestor(Gtk.Grid); const clapperWidget = player.widget.get_ancestor(Gtk.Grid);