Skip to content

Commit 42aaaed

Browse files
committed
Don't show first-time settings dialog if settings were imported from XML already (#1319)
1 parent 4705b35 commit 42aaaed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Src/Lib/Settings.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,6 +1952,13 @@ bool ImportSettingsXml( const wchar_t *fname )
19521952
if (error.IsEmpty())
19531953
{
19541954
g_SettingsManager.SaveSettings(false);
1955+
1956+
// we have successfuly imported settings from XML
1957+
// so there is no need to show settings dialog when start menu is triggered for the first time
1958+
CRegKey regKey;
1959+
if (regKey.Open(HKEY_CURRENT_USER,GetSettingsRegPath())==ERROR_SUCCESS)
1960+
regKey.SetDWORDValue(L"ShowedStyle2",1);
1961+
19551962
return true;
19561963
}
19571964

0 commit comments

Comments
 (0)