mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02: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