We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a28ace5 commit 9df9b05Copy full SHA for 9df9b05
1 file changed
Source/Utility/SettingsFile.cpp
@@ -562,17 +562,20 @@ void SettingsFile::loadThemeFromDiff(Array<var>& savedThemes)
562
if (!savedThemeObj) continue;
563
564
auto const themeName = savedThemeObj->getProperty("name").toString();
565
-
+ bool isDefaultTheme = false;
566
for (auto& current : currentThemes)
567
{
568
auto* currentThemeObj = current.getDynamicObject();
569
if (!currentThemeObj || currentThemeObj->getProperty("name").toString() != themeName) continue;
570
571
+ isDefaultTheme = true;
572
for (auto const& [propName, propValue] : savedThemeObj->getProperties())
573
if (propName != Identifier("name"))
574
currentThemeObj->setProperty(propName, propValue);
575
break;
576
}
577
+ if(!isDefaultTheme)
578
+ currentThemes.add(savedTheme);
579
580
581
0 commit comments