2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-03 08:05:12 +00:00

Create dialogs widget only in the primary window.

This commit is contained in:
John Preston
2022-01-04 16:13:00 +03:00
parent 8b0725650d
commit 54247cd11b
8 changed files with 181 additions and 102 deletions

View File

@@ -337,6 +337,9 @@ void MainWindow::setupMain() {
auto created = object_ptr<MainWidget>(bodyWidget(), sessionController());
clearWidgets();
_main = std::move(created);
if (const auto peer = singlePeer()) {
_main->controller()->showPeerHistory(peer);
}
if (_passcodeLock) {
_main->hide();
} else {