mirror of
https://github.com/Open-Shell/Open-Shell-Menu.git
synced 2026-04-20 10:44:37 +10:00
Don't show first-time settings dialog if settings were imported from XML already (#1319)
This commit is contained in:
@@ -1952,6 +1952,13 @@ bool ImportSettingsXml( const wchar_t *fname )
|
|||||||
if (error.IsEmpty())
|
if (error.IsEmpty())
|
||||||
{
|
{
|
||||||
g_SettingsManager.SaveSettings(false);
|
g_SettingsManager.SaveSettings(false);
|
||||||
|
|
||||||
|
// we have successfuly imported settings from XML
|
||||||
|
// so there is no need to show settings dialog when start menu is triggered for the first time
|
||||||
|
CRegKey regKey;
|
||||||
|
if (regKey.Open(HKEY_CURRENT_USER,GetSettingsRegPath())==ERROR_SUCCESS)
|
||||||
|
regKey.SetDWORDValue(L"ShowedStyle2",1);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user