Menu: Add clear history for recently opened

This commit is contained in:
tobtoht
2021-07-08 14:03:54 +02:00
parent a6946b1665
commit a253022ecc
4 changed files with 36 additions and 7 deletions
+8
View File
@@ -111,6 +111,14 @@ void Config::set(ConfigKey key, const QVariant& value)
emit changed(key);
}
void Config::remove(ConfigKey key)
{
auto cfg = configStrings[key];
m_settings->remove(cfg.name);
emit changed(key);
}
/**
* Sync configuration with persistent storage.
*