X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=nageru%2Fmainwindow.cpp;fp=nageru%2Fmainwindow.cpp;h=73362229ce35e8efc70f9cf5dcfe4c25a6e73037;hb=2e1b69c339862fb9b8147bf0ac07d87ca4810d4e;hp=f33c57d6b2d24f6343c9bab2b04464e6ed489e8f;hpb=efeea7571ab45c6a846208f0554153de549d1711;p=nageru diff --git a/nageru/mainwindow.cpp b/nageru/mainwindow.cpp index f33c57d..7336222 100644 --- a/nageru/mainwindow.cpp +++ b/nageru/mainwindow.cpp @@ -910,6 +910,12 @@ void MainWindow::fill_menu_from_theme_menu(const vectoraddAction(QString::fromStdString(entry->text)); + if (entry->entry.flags == Theme::MenuEntry::CHECKABLE) { + action->setCheckable(true); + } else if (entry->entry.flags == Theme::MenuEntry::CHECKED) { + action->setCheckable(true); + action->setChecked(true); + } connect(action, &QAction::triggered, [lua_ref = entry->entry.lua_ref] { global_mixer->theme_menu_entry_clicked(lua_ref); });