mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 16:15:13 +00:00
Create dialogs widget only in the primary window.
This commit is contained in:
@@ -618,6 +618,14 @@ void SessionController::suggestArchiveAndMute() {
|
||||
}));
|
||||
}
|
||||
|
||||
PeerData *SessionController::singlePeer() const {
|
||||
return _window->singlePeer();
|
||||
}
|
||||
|
||||
bool SessionController::isPrimary() const {
|
||||
return _window->isPrimary();
|
||||
}
|
||||
|
||||
not_null<::MainWindow*> SessionController::widget() const {
|
||||
return _window->widget();
|
||||
}
|
||||
|
Reference in New Issue
Block a user