Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Commit

Permalink
Handle new setting
Browse files Browse the repository at this point in the history
  • Loading branch information
ltworf committed Sep 6, 2017
1 parent df74365 commit 75c70c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions settings.cpp
Expand Up @@ -61,6 +61,7 @@ Settings::Settings(QWidget *parent) :
ui->chkBookmarks->setChecked(settings.value("Source/Bookmarks", true).toBool());
ui->chkDesktop->setChecked(settings.value("Source/Desktop", true).toBool());
ui->chkSearch->setChecked(settings.value("Source/SearchProvider", true).toBool());
ui->chkYnew->setChecked(settings.value("Source/YnewProvider", true).toBool());
ui->spnDuration->setValue(settings.value("duration", 250).toInt());
ui->spnOpacity->setValue(settings.value("opacity", 0.8).toDouble());

Expand All @@ -75,6 +76,7 @@ void Settings::accept() {
settings.setValue("Source/Bookmarks", this->ui->chkBookmarks->isChecked());
settings.setValue("Source/Desktop", this->ui->chkDesktop->isChecked());
settings.setValue("Source/SearchProvider", this->ui->chkSearch->isChecked());
settings.setValue("Source/YnewProvider", this->ui->chkYnew->isChecked());

settings.setValue("Shortcut/modifier", this->ui->cmbModifier->currentData());
settings.setValue("Shortcut/keycode", this->ui->cmbKey->currentData());
Expand Down

0 comments on commit 75c70c0

Please sign in to comment.