From 0fe1cf5f0d1eb28b975ed60d43b37af41ca10154 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Wed, 24 Feb 2021 14:26:34 +0100 Subject: [PATCH] Make volume restore more reliable Instead setting value to volume scale, set value to the player itself. Scale will be updated due to bidirectional binded property. This fixes cases where slider did not emit value-changed notify as it was being set to the same value as initial one. --- src/controls.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/controls.js b/src/controls.js index 4e076bdd..745f8d08 100644 --- a/src/controls.js +++ b/src/controls.js @@ -473,7 +473,7 @@ class ClapperControls extends Gtk.Box ? settings.get_int('volume-value') / 100 : settings.get_double('volume-last'); - this.volumeScale.set_value(initialVolume); + clapperWidget.player.volume = initialVolume; } _onPlayerResize(width, height)