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

Fix settings saving.

Regression was introduced in 5d6a494934.

Fixes #8168.
This commit is contained in:
John Preston
2020-06-30 13:49:22 +04:00
parent d2615dda63
commit a95b756111
5 changed files with 57 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ Calls::Calls(
Calls::~Calls() {
if (_needWriteSettings) {
_controller->session().saveSettingsDelayed();
Core::App().saveSettingsDelayed();
}
}
@@ -134,7 +134,7 @@ void Calls::setupContent() {
: "default";
Core::App().settings().setCallOutputDeviceID(
QString::fromStdString(deviceId));
_controller->session().saveSettingsDelayed();
Core::App().saveSettingsDelayed();
if (const auto call = Core::App().calls().currentCall()) {
call->setCurrentAudioDevice(false, deviceId);
}
@@ -210,7 +210,7 @@ void Calls::setupContent() {
: "default";
Core::App().settings().setCallInputDeviceID(
QString::fromStdString(deviceId));
_controller->session().saveSettingsDelayed();
Core::App().saveSettingsDelayed();
if (_micTester) {
stopTestingMicrophone();
}