mirror of
https://github.com/ONLYOFFICE/desktop-apps.git
synced 2026-04-07 14:09:22 +08:00
[win] for bug 73481: processing global parameter 'ignoreAssocMsg'
This commit is contained in:
@ -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
|
||||
|
||||
@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user