From d6bdc587654f265b56cd42a3e52f2c2e793d02bd Mon Sep 17 00:00:00 2001 From: Marko Lindqvist Date: Thu, 6 Apr 2023 05:19:12 +0300 Subject: [PATCH 35/35] gtk4: Make edit mode indicator to show correct value See osdn #47597 Signed-off-by: Marko Lindqvist --- client/gui-gtk-4.0/menu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/gui-gtk-4.0/menu.c b/client/gui-gtk-4.0/menu.c index c035b2b849..6ab2a87f73 100644 --- a/client/gui-gtk-4.0/menu.c +++ b/client/gui-gtk-4.0/menu.c @@ -3790,9 +3790,10 @@ void real_menus_update(void) info = menu_entry_info_find("EDIT_MODE"); if (info->state != game.info.is_edit_mode) { + info->state = game.info.is_edit_mode; g_menu_remove(edit_menu, 4); menu_item_insert_unref(edit_menu, 4, - create_toggle_menu_item_for_key("EDIT_MODE")); + create_toggle_menu_item(info)); menu_entry_set_sensitive(map, "EDIT_MODE", can_conn_enable_editing(&client.conn)); -- 2.39.2