File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ struct top_menu_widget : autoconfig_window_t<top_menu_widget> {
84
84
void sub_menu_init ();
85
85
void advisors_handle (menu_item &item);
86
86
void help_handle (menu_item &item);
87
+ void options_handle (menu_item &item);
87
88
88
89
virtual void load (archive arch, pcstr section) override {
89
90
autoconfig_window::load (arch, section);
@@ -591,7 +592,7 @@ static void menu_options_hotkeys(int param) {
591
592
window_hotkey_config_show ([] {});
592
593
}
593
594
594
- void top_menu_options_handle (menu_item &item) {
595
+ void top_menu_widget::options_handle (menu_item &item) {
595
596
if (item.id == " display_options" ) {
596
597
widget_top_menu_clear_state ();
597
598
ui::display_options_window::show (window_city_show);
@@ -635,7 +636,7 @@ void top_menu_widget::sub_menu_init() {
635
636
auto *options = headers[" options" ].dcast_menu_header ();
636
637
if (options) {
637
638
options->item (0 ).hidden = system_is_fullscreen_only ();
638
- options->onclick (top_menu_options_handle );
639
+ options->onclick ([ this ] ( auto &h) { options_handle (h); } );
639
640
}
640
641
641
642
auto *file = headers[" file" ].dcast_menu_header ();
You can’t perform that action at this time.
0 commit comments