mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-25 01:50:36 +00:00
Replaced instant base::call_delayed with InvokeQueued.
This commit is contained in:
parent
c1d3e5f0c5
commit
613f2ba708
@ -41,7 +41,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "settings/settings_intro.h"
|
||||
#include "platform/platform_notifications_manager.h"
|
||||
#include "base/platform/base_platform_info.h"
|
||||
#include "base/call_delayed.h"
|
||||
#include "base/variant.h"
|
||||
#include "window/notifications_manager.h"
|
||||
#include "window/themes/window_theme.h"
|
||||
@ -718,7 +717,7 @@ void MainWindow::handleTrayIconActication(
|
||||
}
|
||||
if (reason == QSystemTrayIcon::Context) {
|
||||
updateTrayMenu();
|
||||
base::call_delayed(1, this, [=] {
|
||||
InvokeQueued(this, [=] {
|
||||
psShowTrayMenu();
|
||||
});
|
||||
} else if (!skipTrayClick()) {
|
||||
|
@ -25,7 +25,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
|
||||
#include "main/main_session.h"
|
||||
#include "main/main_session_settings.h"
|
||||
#include "base/crc32hash.h"
|
||||
#include "base/call_delayed.h"
|
||||
#include "ui/toast/toast.h"
|
||||
#include "ui/widgets/shadow.h"
|
||||
#include "ui/ui_utility.h"
|
||||
@ -324,7 +323,7 @@ void MainWindow::handleActiveChanged() {
|
||||
if (isActiveWindow()) {
|
||||
Core::App().checkMediaViewActivation();
|
||||
}
|
||||
base::call_delayed(1, this, [this] {
|
||||
InvokeQueued(this, [=] {
|
||||
handleActiveChangedHook();
|
||||
});
|
||||
}
|
||||
@ -343,7 +342,7 @@ void MainWindow::handleVisibleChanged(bool visible) {
|
||||
}
|
||||
|
||||
void MainWindow::showFromTray() {
|
||||
base::call_delayed(1, this, [this] {
|
||||
InvokeQueued(this, [=] {
|
||||
updateGlobalMenu();
|
||||
});
|
||||
activate();
|
||||
|
Loading…
Reference in New Issue
Block a user