Restore initial GUI state after playback

This commit is contained in:
Rafał Dzięgiel
2021-04-27 11:14:09 +02:00
parent 3238270c0d
commit 047dd12fbb
2 changed files with 19 additions and 5 deletions

View File

@@ -431,10 +431,8 @@ class ClapperWidget extends Gtk.Grid
break;
case GstClapper.ClapperState.STOPPED:
debug('player state changed to: STOPPED');
this.controls.currentPosition = 0;
this.controls.positionScale.set_value(0);
this.controls.setInitialState();
this.revealerTop.showTitle = false;
this.controls.togglePlayButton.setPrimaryIcon();
break;
case GstClapper.ClapperState.PAUSED:
debug('player state changed to: PAUSED');