2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Fix volume saving to settings.

This commit is contained in:
John Preston
2019-03-12 09:09:53 +04:00
parent 6afb3f70bb
commit 846499a4fb
9 changed files with 95 additions and 83 deletions

View File

@@ -14,6 +14,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "styles/style_media_player.h"
#include "styles/style_widgets.h"
#include "mainwindow.h"
#include "auth_session.h"
namespace Media {
namespace Player {
@@ -29,6 +30,7 @@ VolumeController::VolumeController(QWidget *parent) : TWidget(parent)
Global::SetRememberedSongVolume(volume);
}
applyVolumeChange(volume);
Auth().saveSettingsDelayed();
});
subscribe(Global::RefSongVolumeChanged(), [this] {
if (!_slider->isChanging()) {