From 1bc8d6fb182dfa13496d1b9c951c6c23c4aa8010 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 21 Apr 2022 15:23:32 +0400 Subject: [PATCH] Fix non-working Qt-on-Windows bug workaround. --- Telegram/SourceFiles/platform/win/main_window_win.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/platform/win/main_window_win.cpp b/Telegram/SourceFiles/platform/win/main_window_win.cpp index 3800413985..3d6443590d 100644 --- a/Telegram/SourceFiles/platform/win/main_window_win.cpp +++ b/Telegram/SourceFiles/platform/win/main_window_win.cpp @@ -630,7 +630,7 @@ void MainWindow::showFromTrayMenu() { // It will receive input events, but it will be rendered as inactive. using namespace rpl::mappers; _showFromTrayLifetime = trayIconMenu->shownValue( - ) | rpl::filter(_1) | rpl::take(1) | rpl::start_with_next([=] { + ) | rpl::filter(!_1) | rpl::take(1) | rpl::start_with_next([=] { showFromTray(); }); }