mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-01 02:46:59 +03:00
feat: track instance copies that use links
confirm deleations when other instances link to it Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
parent
3ec92acfe7
commit
1ca2c59f2e
11 changed files with 213 additions and 2 deletions
|
|
@ -121,6 +121,19 @@ bool SettingsObject::contains(const QString &id)
|
|||
return m_settings.contains(id);
|
||||
}
|
||||
|
||||
bool SettingsObject::setList(const QString &id, QVariantList value)
|
||||
{
|
||||
QString stringList = QJsonDocument(QVariant(value).toJsonArray()).toJson(QJsonDocument::Compact);
|
||||
|
||||
return set(id, stringList);
|
||||
}
|
||||
|
||||
QVariantList SettingsObject::getList(const QString &id)
|
||||
{
|
||||
QVariant value = this->get(id);
|
||||
return QJsonDocument::fromJson(value.toByteArray()).toVariant().toList();
|
||||
}
|
||||
|
||||
bool SettingsObject::reload()
|
||||
{
|
||||
for (auto setting : m_settings.values())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue