mirror of
https://github.com/YACReader/yacreader
synced 2026-03-01 18:33:09 -05:00
Don't save the default theme color
This commit is contained in:
@ -247,7 +247,11 @@ void OptionsDialog::saveOptions()
|
||||
|
||||
Configuration::getConfiguration().setShowTimeInInformation(showTimeInInformationLabel->isChecked());
|
||||
|
||||
settings->setValue(BACKGROUND_COLOR, currentColor);
|
||||
if (currentColor != ThemeManager::instance().getCurrentTheme().viewer.defaultBackgroundColor) {
|
||||
settings->setValue(BACKGROUND_COLOR, currentColor);
|
||||
} else {
|
||||
settings->remove(BACKGROUND_COLOR);
|
||||
}
|
||||
// settings->setValue(FIT_TO_WIDTH_RATIO,fitToWidthRatioS->sliderPosition()/100.0);
|
||||
settings->setValue(QUICK_NAVI_MODE, quickNavi->isChecked());
|
||||
settings->setValue(DISABLE_MOUSE_OVER_GOTO_FLOW, disableShowOnMouseOver->isChecked());
|
||||
|
||||
Reference in New Issue
Block a user