mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Initial support of separate windows for accounts.
This commit is contained in:
@@ -565,7 +565,8 @@ void System::showNext() {
|
||||
const auto &settings = Core::App().settings();
|
||||
if (alertThread) {
|
||||
if (settings.flashBounceNotify() && !_manager->skipFlashBounce()) {
|
||||
if (const auto window = Core::App().primaryWindow()) {
|
||||
const auto peer = alertThread->peer();
|
||||
if (const auto window = Core::App().windowFor(peer)) {
|
||||
if (const auto handle = window->widget()->windowHandle()) {
|
||||
handle->alert(kSystemAlertDuration);
|
||||
// (handle, SLOT(_q_clearAlert())); in the future.
|
||||
|
Reference in New Issue
Block a user