[win] for bug 73481: processing global parameter 'ignoreAssocMsg'

This commit is contained in:
SimplestStudio
2025-04-03 14:58:46 +03:00
parent d7940fd7c4
commit 7ee5246248
2 changed files with 3 additions and 2 deletions

View File

@ -969,7 +969,7 @@ begin
end;
if CheckCommandlineParam('/noassocheck') then begin
RegWriteStringValue(HKEY_CURRENT_USER, ExpandConstant('{#APP_REG_PATH}'), 'ignoreAssocMsg', 'true');
RegWriteStringValue(HKEY_LOCAL_MACHINE, ExpandConstant('{#APP_REG_PATH}'), 'ignoreAssocMsg', 'true');
end;
end else

View File

@ -134,8 +134,9 @@ void Association::AssociationPrivate::DialogSchedule::addToSchedule(const std::w
Association::AssociationPrivate::AssociationPrivate() : m_pDialogSchedule(new DialogSchedule(this))
{
GET_REGISTRY_SYSTEM(reg_system)
GET_REGISTRY_USER(reg_user)
m_ignoreAssocMsg = reg_user.value("ignoreAssocMsg", false).toBool() || IsPackage(Portable);
m_ignoreAssocMsg = reg_system.value("ignoreAssocMsg", false).toBool() || reg_user.value("ignoreAssocMsg", false).toBool() || IsPackage(Portable);
if (!m_ignoreAssocMsg)
m_lastCheck = time_t(reg_user.value("lastAssocCheck", 0).toLongLong());