mirror of
https://github.com/yuezk/GlobalProtect-openconnect.git
synced 2025-05-20 07:26:58 -04:00
Read all saved Gateways (for selecting in Systray) (#181)
This commit is contained in:
@@ -115,6 +115,12 @@ QVariant gpclient::helper::settings::get(const QString &key, const QVariant &def
|
||||
return _settings->value(key, defaultValue);
|
||||
}
|
||||
|
||||
QStringList gpclient::helper::settings::get_all(const QString &key, const QVariant &defaultValue)
|
||||
{
|
||||
QRegularExpression re(key);
|
||||
return _settings->allKeys().filter(re);
|
||||
}
|
||||
|
||||
void gpclient::helper::settings::save(const QString &key, const QVariant &value)
|
||||
{
|
||||
_settings->setValue(key, value);
|
||||
|
||||
Reference in New Issue
Block a user