MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / setPersistent

Method setPersistent

src/settings.cpp:1493–1506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1491}
1492
1493void PluginSettings::setPersistent(const QString& pluginName, const QString& key,
1494 const QVariant& value, bool sync)
1495{
1496 if (!m_PluginSettings.contains(pluginName)) {
1497 throw MyException(QObject::tr("attempt to store setting for unknown plugin \"%1\"")
1498 .arg(pluginName));
1499 }
1500
1501 set(m_Settings, "PluginPersistance", pluginName + "/" + key, value);
1502
1503 if (sync) {
1504 m_Settings.sync();
1505 }
1506}
1507
1508void PluginSettings::addBlacklist(const QString& fileName)
1509{

Callers 1

setEnabledMethod · 0.45

Calls 2

syncMethod · 0.80
setFunction · 0.70

Tested by

no test coverage detected