Fix sensitivity of macOS global menu at application start

Various actions are set as insensitive during editor c'tor.
When the macOS global menu is created those were marker as
sensitive, while GTK's internal state (private_data->sensitive)
was set to false. This lead to to inconsistencies.
This commit is contained in:
Robin Gareus 2024-02-16 16:20:02 +01:00
parent 20d813cd17
commit f5789852de
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -1067,8 +1067,8 @@ add_menu_item (NSMenu* cocoa_menu, GtkWidget* menu_item, int index)
/* connect GtkMenuItem and NSMenuItem so that we can notice changes to accel/label/submenu etc. */
cocoa_menu_item_connect (menu_item, (GNSMenuItem*) cocoa_item, label);
[ cocoa_item setEnabled:YES];
cocoa_menu_item_update_state (cocoa_item, menu_item);
if (index >= 0)
[ cocoa_menu insertItem:cocoa_item atIndex:index];
else