Skip to content

Commit

Permalink
Set "minimal" complevels by default
Browse files Browse the repository at this point in the history
  • Loading branch information
Pedro-Beirao committed Nov 23, 2024
1 parent 7fe55d1 commit 3c916aa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ void Settings::ReadSettings()
if (settings->value("complevels").toInt() == 0) ui->minimalComplevels_radioButton->setChecked(true);
else if (settings->value("complevels").toInt() == 1) ui->fullComplevels_radioButton->setChecked(true);
}
else settings->setValue("complevels", 0);
else
{
settings->setValue("complevels", 0);
ui->minimalComplevels_radioButton->setChecked(true);
}

if (!settings->value("remember").isNull()) ui->remember_checkBox->setChecked(settings->value("remember").toBool());
else settings->setValue("remember", true);
Expand Down

0 comments on commit 3c916aa

Please sign in to comment.