mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 16:02:00 +02:00
Do not try to uninhibit when app is closing
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user