Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

fix missing checkbox in menu

shun-iwasawa82f53e245f00
diff --git a/toonz/sources/toonz/mainwindow.cpp b/toonz/sources/toonz/mainwindow.cpp
index b885b6fd8..542a79682 100644
--- a/toonz/sources/toonz/mainwindow.cpp
+++ b/toonz/sources/toonz/mainwindow.cpp
@@ -1693,6 +1693,12 @@ QAction *MainWindow::createToggle(const char *id, const char *name,
QAction *action = createAction(id, name, defaultShortcut, type, 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 =