Skip to content

Commit

Permalink
Update appsupport.cpp
Browse files Browse the repository at this point in the history
Set default values for res/fps presets settings.

Fix #92
  • Loading branch information
rodlie committed Nov 11, 2023
1 parent f471798 commit 66dccb1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/core/appsupport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,8 @@ QPair<bool, bool> AppSupport::getFpsPresetStatus()
QPair<bool, bool> status;
QSettings settings;
settings.beginGroup("presets");
status.first = settings.value("EnableFPS").toBool();
status.second = settings.value("EnableFPSAuto").toBool();
status.first = settings.value("EnableFPS", true).toBool();
status.second = settings.value("EnableFPSAuto", true).toBool();
settings.endGroup();
return status;
}
Expand Down Expand Up @@ -537,8 +537,8 @@ QPair<bool, bool> AppSupport::getResolutionPresetStatus()
QPair<bool, bool> status;
QSettings settings;
settings.beginGroup("presets");
status.first = settings.value("EnableResolutions").toBool();
status.second = settings.value("EnableResolutionsAuto").toBool();
status.first = settings.value("EnableResolutions", true).toBool();
status.second = settings.value("EnableResolutionsAuto", true).toBool();
settings.endGroup();
return status;
}

0 comments on commit 66dccb1

Please sign in to comment.