mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-05-19 16:10:35 +00:00
Fix incorrect getToggleOptionValue behavior
This commit is contained in:
@@ -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