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