mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-10-26 14:00:08 +00:00
Fix incorrect getToggleOptionValue behavior
This commit is contained in:
1 parent
1fd545ae1f
commit
9cb4105aec
1 file changed
+1
-1
@@ -87,7 +87,7 @@ public:
|
|||||||
|
|
||||||
bool getToggleOptionValue(QString name, bool defaultValue) const
|
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);
|
QStringList options = optionNames().filter(re);
|
||||||
if (options.isEmpty()) {
|
if (options.isEmpty()) {
|
||||||
return defaultValue;
|
return defaultValue;
|
||||||
|
|||||||
Reference in new issue
Block a user