mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-02-16 18:50:43 +00:00
Fix incorrect getToggleOptionValue behavior
This commit is contained in:
@@ -87,7 +87,7 @@ public:
|
||||
|
||||
bool getToggleOptionValue(QString name, bool defaultValue) const
|
||||
{
|
||||
static QRegularExpression re(QString("^(%1|no-%1)$").arg(name));
|
||||
QRegularExpression re(QString("^(%1|no-%1)$").arg(name));
|
||||
QStringList options = optionNames().filter(re);
|
||||
if (options.isEmpty()) {
|
||||
return defaultValue;
|
||||
|
||||
Reference in New Issue
Block a user