mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-26 00:23:55 -07:00
Apply wiped theme on revert.
Took 4 minutes
This commit is contained in:
parent
c1098399da
commit
d8be3dae9c
1 changed files with 7 additions and 2 deletions
|
|
@ -322,8 +322,13 @@ void PaletteEditorDialog::onRevertToDefault()
|
|||
|
||||
savedConfig[loadedScheme] = def;
|
||||
workingConfig[loadedScheme] = def;
|
||||
paletteGrid->loadPalette(def);
|
||||
retranslateUi(); // update button enabled state
|
||||
|
||||
ThemeConfig globalCfg = themeManager->effectiveThemeConfig(themeName);
|
||||
globalCfg.colorScheme = loadedScheme;
|
||||
globalCfg.save(userThemeDirPath);
|
||||
|
||||
themeManager->reloadCurrentTheme();
|
||||
accept();
|
||||
}
|
||||
|
||||
void PaletteEditorDialog::changeEvent(QEvent *e)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue