Don't make new ThemeManager instance.

Took 8 minutes
This commit is contained in:
Lukas Brübach 2026-06-19 15:56:40 +02:00
parent 2e754f6ec0
commit c1098399da
2 changed files with 4 additions and 13 deletions

View file

@ -267,7 +267,7 @@ void PaletteEditorDialog::onSave()
}
// Record the active scheme in the user dir — never touch the system (read-only) dir
ThemeConfig globalCfg = ThemeConfig::fromThemeDir(themeDirPath);
ThemeConfig globalCfg = themeManager->effectiveThemeConfig(themeName);
globalCfg.colorScheme = loadedScheme;
globalCfg.save(userThemeDirPath);