Compare commits

...

2 Commits

Author SHA1 Message Date
Serhii Snitsaruk 08884e6180
Merge pull request #219 from monxa/fix-miscmenu-layout-duplicates
Fix duplicate entries in Misc->Layout
2024-09-17 14:42:01 +02:00
Alexander Montag c2130a7b2f Fix duplicate entries in Misc->layout
Fixes #218
2024-09-17 02:16:47 +02:00
1 changed files with 2 additions and 2 deletions

View File

@ -1279,9 +1279,9 @@ void LimboAIEditor::_update_misc_menu() {
layout_menu->set_name("LayoutMenu"); layout_menu->set_name("LayoutMenu");
layout_menu->connect(LW_NAME(id_pressed), callable_mp(this, &LimboAIEditor::_misc_option_selected)); layout_menu->connect(LW_NAME(id_pressed), callable_mp(this, &LimboAIEditor::_misc_option_selected));
misc_menu->add_child(layout_menu); misc_menu->add_child(layout_menu);
}
layout_menu->add_radio_check_item(TTR("Classic"), MISC_LAYOUT_CLASSIC); layout_menu->add_radio_check_item(TTR("Classic"), MISC_LAYOUT_CLASSIC);
layout_menu->add_radio_check_item(TTR("Widescreen Optimized"), MISC_LAYOUT_WIDESCREEN_OPTIMIZED); layout_menu->add_radio_check_item(TTR("Widescreen Optimized"), MISC_LAYOUT_WIDESCREEN_OPTIMIZED);
}
misc_menu->add_submenu_item(TTR("Layout"), "LayoutMenu"); misc_menu->add_submenu_item(TTR("Layout"), "LayoutMenu");
EditorLayout saved_layout = (EditorLayout)(int)EDITOR_GET("limbo_ai/editor/layout"); EditorLayout saved_layout = (EditorLayout)(int)EDITOR_GET("limbo_ai/editor/layout");
layout_menu->set_item_checked(0, saved_layout == LAYOUT_CLASSIC); layout_menu->set_item_checked(0, saved_layout == LAYOUT_CLASSIC);