Skip to content

Commit

Permalink
Gui: Update implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
3unjee committed Dec 15, 2018
1 parent 2eee95f commit f7e550d
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions content/Gui.qml
Expand Up @@ -609,13 +609,23 @@ Item
{
updateScreenDim();

if (player.isPlaying == false)
if (player.isPlaying)
{
restoreBars();
sk.screenSaverEnabled = false;

return;
}

sk.screenSaverEnabled = true;
if (player.isStopped && playerBrowser.visible)
{
var playlist = pGetCurrentPlaylist();

if (playlist) setCurrentTrack(playlist, playlist.lastSelected);
}
else sk.screenSaverEnabled = false;

restoreBars();

sk.screenSaverEnabled = true;
}

onHasStartedChanged:
Expand Down

0 comments on commit f7e550d

Please sign in to comment.