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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user