}
QAction *action = menu->addAction(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);
});