Commit 576f2c8d authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Always send along toggle-state for check boxes

Otherwise the application cannot uncheck it again (same bug we had with enabled)
parent 56c90cb0
......@@ -1061,6 +1061,8 @@ QVariantMap Menu::gMenuToDBusMenuProperties(const QVariantMap &source) const
result.insert(QStringLiteral("toggle-type"), QStringLiteral("checkbox"));
if (firstArg.toBool()) {
result.insert(QStringLiteral("toggle-state"), 1);
} else {
result.insert(QStringLiteral("toggle-state"), 0);
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment