mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-03 03:46:58 +03:00
Fix settings objects, instances can be started from the GUI now
This commit is contained in:
parent
e4f86893a8
commit
40570c3210
8 changed files with 56 additions and 12 deletions
|
|
@ -26,7 +26,10 @@ void BasicSettingsObject::changeSetting(const Setting &setting, QVariant value)
|
|||
{
|
||||
if (contains(setting.id()))
|
||||
{
|
||||
config.setValue(setting.configKey(), value);
|
||||
if(value.isValid())
|
||||
config.setValue(setting.configKey(), value);
|
||||
else
|
||||
config.remove(setting.configKey());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue