Fix toggle play button icon change

This commit is contained in:
Rafostar
2020-10-07 20:22:02 +02:00
parent 352eff89b7
commit 4c5d922d47
4 changed files with 75 additions and 39 deletions

View File

@@ -350,10 +350,10 @@ class ClapperInterface extends Gtk.Grid
case GstPlayer.PlayerState.STOPPED:
this.needsTracksUpdate = true;
case GstPlayer.PlayerState.PAUSED:
this.controls.togglePlayButton.setPlayImage();
this.controls.togglePlayButton.setPrimaryIcon();
break;
case GstPlayer.PlayerState.PLAYING:
this.controls.togglePlayButton.setPauseImage();
this.controls.togglePlayButton.setSecondaryIcon();
if(this.needsTracksUpdate) {
this.needsTracksUpdate = false;
this.updateMediaTracks();