Update Windows taskbar icon in new version.

This commit is contained in:
John Preston 2021-07-20 20:05:16 +03:00
parent 3a26644fa2
commit 87ca2c891a
1 changed files with 7 additions and 2 deletions

View File

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