mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-18 07:07:08 +02:00
Remember volume from SMC.
Co-authored-by: 23rd <23rd@vivaldi.net>
This commit is contained in:
parent
fb1c253992
commit
434a7c5293
1 changed files with 3 additions and 0 deletions
|
@ -248,6 +248,9 @@ SystemMediaControlsManager::SystemMediaControlsManager(
|
|||
_controls->volumeChangeRequests(
|
||||
) | rpl::start_with_next([](float64 volume) {
|
||||
Player::mixer()->setSongVolume(volume);
|
||||
if (volume > 0) {
|
||||
Core::App().settings().setRememberedSongVolume(volume);
|
||||
}
|
||||
Core::App().settings().setSongVolume(volume);
|
||||
}, _lifetime);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue