Set (un)inhibit screen earlier

This commit is contained in:
Rafostar
2020-11-10 23:16:45 +01:00
parent e7937162e7
commit 7226a59cea
3 changed files with 15 additions and 18 deletions

View File

@@ -414,14 +414,8 @@ var Widget = GObject.registerClass({
break;
}
let isNotStopped = (state !== GstPlayer.PlayerState.STOPPED)
let isNotStopped = (state !== GstPlayer.PlayerState.STOPPED);
this.revealerTop.endTime.set_visible(isNotStopped);
if(state === GstPlayer.PlayerState.BUFFERING)
return;
let window = this.get_root();
Misc.inhibitForState(state, window);
}
_onPlayerDurationChanged(player)