mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-05 12:56:58 +03:00
Finalize the instance settings dialog, add setting reset mechanism
This commit is contained in:
parent
b5450042b5
commit
e2ee6d6d25
11 changed files with 272 additions and 95 deletions
|
|
@ -40,6 +40,15 @@ void INISettingsObject::changeSetting(const Setting &setting, QVariant value)
|
|||
}
|
||||
}
|
||||
|
||||
void INISettingsObject::resetSetting ( const Setting& setting )
|
||||
{
|
||||
if (contains(setting.id()))
|
||||
{
|
||||
m_ini.remove(setting.configKey());
|
||||
m_ini.saveFile(m_filePath);
|
||||
}
|
||||
}
|
||||
|
||||
QVariant INISettingsObject::retrieveValue(const Setting &setting)
|
||||
{
|
||||
if (contains(setting.id()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue