From cfee688feb811004ab7f681aa726ce42a8cde8d7 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Thu, 13 May 2021 14:12:05 +0400 Subject: [PATCH] Replace call_delayed with InvokeQueued in MainWindow::handleVisibleChanged --- Telegram/SourceFiles/platform/linux/main_window_linux.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp index b409f1597..99c4e617a 100644 --- a/Telegram/SourceFiles/platform/linux/main_window_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/main_window_linux.cpp @@ -25,7 +25,7 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include "window/window_controller.h" #include "window/window_session_controller.h" #include "base/platform/base_platform_info.h" -#include "base/call_delayed.h" +#include "base/invoke_queued.h" #include "ui/widgets/popup_menu.h" #include "ui/widgets/input_fields.h" #include "facades.h" @@ -1270,7 +1270,7 @@ void MainWindow::updateGlobalMenuHook() { void MainWindow::handleVisibleChangedHook(bool visible) { if (visible) { - base::call_delayed(1, this, [=] { + InvokeQueued(this, [=] { SkipTaskbar( windowHandle(), (Global::WorkMode().value() == dbiwmTrayOnly) @@ -1281,7 +1281,7 @@ void MainWindow::handleVisibleChangedHook(bool visible) { #ifndef DESKTOP_APP_DISABLE_DBUS_INTEGRATION if (_appMenuSupported && _mainMenuExporter) { if (visible) { - base::call_delayed(1, this, [=] { + InvokeQueued(this, [=] { RegisterAppMenu(windowHandle(), kMainMenuObjectPath.utf16()); }); } else {