mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
Each MainWindow has its own Global Menu.
This commit is contained in:
@@ -1688,6 +1688,9 @@ void SessionController::showPeerHistory(
|
||||
const SectionShow ¶ms,
|
||||
MsgId msgId) {
|
||||
content()->showPeerHistory(peerId, params, msgId);
|
||||
if (peerId && params.activation != anim::activation::background) {
|
||||
_window->activate();
|
||||
}
|
||||
}
|
||||
|
||||
void SessionController::showMessage(
|
||||
@@ -1705,6 +1708,9 @@ void SessionController::showMessage(
|
||||
} else {
|
||||
controller->content()->showMessage(item, params);
|
||||
}
|
||||
if (params.activation != anim::activation::background) {
|
||||
controller->window().activate();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user