mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
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.
This commit is contained in:
2
src/controls.js
vendored
2
src/controls.js
vendored
@@ -473,7 +473,7 @@ class ClapperControls extends Gtk.Box
|
|||||||
? settings.get_int('volume-value') / 100
|
? settings.get_int('volume-value') / 100
|
||||||
: settings.get_double('volume-last');
|
: settings.get_double('volume-last');
|
||||||
|
|
||||||
this.volumeScale.set_value(initialVolume);
|
clapperWidget.player.volume = initialVolume;
|
||||||
}
|
}
|
||||||
|
|
||||||
_onPlayerResize(width, height)
|
_onPlayerResize(width, height)
|
||||||
|
Reference in New Issue
Block a user