mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-09 09:33:57 -07:00
Don't make new ThemeManager instance.
Took 8 minutes
This commit is contained in:
parent
2e754f6ec0
commit
c1098399da
2 changed files with 4 additions and 13 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue