mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Fixed recursive invoking of Application::windowFor.
This commit is contained in:
parent
e9650385ad
commit
caef698e54
1 changed files with 1 additions and 1 deletions
|
@ -1341,7 +1341,7 @@ Window::Controller *Application::ensureSeparateWindowFor(
|
|||
Window::Controller *Application::windowFor(Window::SeparateId id) const {
|
||||
if (const auto separate = separateWindowFor(id)) {
|
||||
return separate;
|
||||
} else if (id && id.primary()) {
|
||||
} else if (id && !id.primary()) {
|
||||
return windowFor(not_null(id.account));
|
||||
}
|
||||
return activePrimaryWindow();
|
||||
|
|
Loading…
Add table
Reference in a new issue