mirror of
https://github.com/stenzek/duckstation.git
synced 2025-06-08 12:35:48 +00:00
Qt: Only write settings ini if it is changed
Save some disk writes.
This commit is contained in:
parent
d0b7d9d027
commit
5f2355510b
@ -2553,7 +2553,7 @@ void QtHost::SaveSettings()
|
|||||||
{
|
{
|
||||||
Error error;
|
Error error;
|
||||||
auto lock = Host::GetSettingsLock();
|
auto lock = Host::GetSettingsLock();
|
||||||
if (!s_base_settings_interface.Save(&error))
|
if (s_base_settings_interface.IsDirty() && !s_base_settings_interface.Save(&error))
|
||||||
ERROR_LOG("Failed to save settings: {}", error.GetDescription());
|
ERROR_LOG("Failed to save settings: {}", error.GetDescription());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user