fix missing checkbox in menu

This commit is contained in:
shun-iwasawa 2021-04-14 16:20:09 +09:00 committed by manongjohn
parent 7e35943cb1
commit 97bcb4becc

View file

@ -1679,6 +1679,12 @@ QAction *MainWindow::createToggle(const char *id, const char *name,
iconSVGName);
// Remove if the icon is not set. Checkbox will be drawn by style sheet.
if (!iconSVGName || !*iconSVGName) action->setIcon(QIcon());
#if defined(_WIN32)
else {
bool visible = Preferences::instance()->getBoolValue(showIconsInMenu);
action->setIconVisibleInMenu(visible);
}
#endif
action->setCheckable(true);
if (startStatus == true) action->trigger();
bool ret =