From 87ca2c891afb9b69503e33f2b6a31897ef11dc99 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 20 Jul 2021 20:05:16 +0300 Subject: [PATCH] Update Windows taskbar icon in new version. --- Telegram/SourceFiles/platform/win/specific_win.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Telegram/SourceFiles/platform/win/specific_win.cpp b/Telegram/SourceFiles/platform/win/specific_win.cpp index 1c81313deb..87fa697a5f 100644 --- a/Telegram/SourceFiles/platform/win/specific_win.cpp +++ b/Telegram/SourceFiles/platform/win/specific_win.cpp @@ -473,10 +473,15 @@ void psNewVersion() { if (Local::oldSettingsVersion() < 8051) { AppUserModelId::checkPinned(); } - if (Local::oldSettingsVersion() > 0 && Local::oldSettingsVersion() < 10021) { + if (Local::oldSettingsVersion() > 0 + && Local::oldSettingsVersion() < 2008012) { // Reset icons cache, because we've changed the application icon. if (Dlls::SHChangeNotify) { - Dlls::SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, nullptr, nullptr); + Dlls::SHChangeNotify( + SHCNE_ASSOCCHANGED, + SHCNF_IDLIST, + nullptr, + nullptr); } } }