mirror of
https://github.com/YACReader/yacreader
synced 2025-07-14 02:54:46 -04:00
Use new property name and set false as default
This commit is contained in:
@ -52,7 +52,7 @@ OptionsDialog::OptionsDialog(QWidget *parent)
|
||||
|
||||
connect(trayIconCheckbox, &QCheckBox::clicked,
|
||||
[=](bool checked) {
|
||||
settings->setValue(MINIMIZE_TO_TRAY, checked);
|
||||
settings->setValue(CLOSE_TO_TRAY, checked);
|
||||
startToTrayCheckbox->setEnabled(checked);
|
||||
emit optionsChanged();
|
||||
});
|
||||
@ -168,7 +168,7 @@ void OptionsDialog::restoreOptions(QSettings *settings)
|
||||
{
|
||||
YACReaderOptionsDialog::restoreOptions(settings);
|
||||
|
||||
trayIconCheckbox->setChecked(settings->value(MINIMIZE_TO_TRAY, true).toBool());
|
||||
trayIconCheckbox->setChecked(settings->value(CLOSE_TO_TRAY, false).toBool());
|
||||
startToTrayCheckbox->setChecked(settings->value(START_TO_TRAY, false).toBool());
|
||||
startToTrayCheckbox->setEnabled(trayIconCheckbox->isChecked());
|
||||
|
||||
|
Reference in New Issue
Block a user