mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
Hide end time together with title when stopped
This commit is contained in:
@@ -128,6 +128,9 @@ class ClapperRevealerTop extends CustomRevealer
|
||||
|
||||
this.set_child(revealerBox);
|
||||
|
||||
this.mediaTitle.bind_property('visible', this.endTime, 'visible',
|
||||
GObject.BindingFlags.DEFAULT
|
||||
);
|
||||
this.connect('notify::child-revealed', this._onTopRevealed.bind(this));
|
||||
}
|
||||
|
||||
|
@@ -449,6 +449,7 @@ class ClapperWidget extends Gtk.Grid
|
||||
debug('player state changed to: STOPPED');
|
||||
this.controls.currentPosition = 0;
|
||||
this.controls.positionScale.set_value(0);
|
||||
this.revealerTop.showTitle = false;
|
||||
this.controls.togglePlayButton.setPrimaryIcon();
|
||||
break;
|
||||
case GstClapper.ClapperState.PAUSED:
|
||||
@@ -462,9 +463,6 @@ class ClapperWidget extends Gtk.Grid
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
const isNotStopped = (state !== GstClapper.ClapperState.STOPPED);
|
||||
this.revealerTop.endTime.visible = isNotStopped;
|
||||
}
|
||||
|
||||
_onPlayerDurationChanged(player, duration)
|
||||
|
Reference in New Issue
Block a user