2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 22:55:11 +00:00

Replaced instant base::call_delayed with InvokeQueued.

This commit is contained in:
23rd
2021-09-03 16:04:31 +03:00
committed by John Preston
parent c1d3e5f0c5
commit 613f2ba708
2 changed files with 3 additions and 5 deletions

View File

@@ -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();