2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Remove some activeAccount() calls.

This commit is contained in:
John Preston
2020-06-10 18:52:44 +04:00
parent 598fb67cdf
commit ea86433be5
28 changed files with 132 additions and 58 deletions

View File

@@ -305,10 +305,12 @@ void MainWindow::showSettings() {
return;
}
if (const auto controller = sessionController()) {
controller->showSettings();
if (const auto session = sessionController()) {
session->showSettings();
} else {
showSpecialLayer(Box<Settings::LayerWidget>(), anim::type::normal);
showSpecialLayer(
Box<Settings::LayerWidget>(&controller()),
anim::type::normal);
}
}