mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-28 19:21:04 +00:00
Add comment
This commit is contained in:
parent
325d208b4a
commit
84aceedfa2
@ -117,6 +117,8 @@ bool Launcher::GraphicsPage::loadSettings()
|
|||||||
|
|
||||||
void Launcher::GraphicsPage::saveSettings()
|
void Launcher::GraphicsPage::saveSettings()
|
||||||
{
|
{
|
||||||
|
// Ensure we only set the new settings if they changed. This is to avoid cluttering the
|
||||||
|
// user settings file (which by definition should only contain settings the user has touched)
|
||||||
bool cVSync = vSyncCheckBox->checkState();
|
bool cVSync = vSyncCheckBox->checkState();
|
||||||
if (cVSync != mEngineSettings.getBool("vsync", "Video"))
|
if (cVSync != mEngineSettings.getBool("vsync", "Video"))
|
||||||
mEngineSettings.setBool("vsync", "Video", cVSync);
|
mEngineSettings.setBool("vsync", "Video", cVSync);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user