mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
Fix menu shading of copy/cut/paste options when more than one of them should be made available.
This commit is contained in:
parent
773cc5b562
commit
74a82e2ab0
@ -2332,19 +2332,19 @@ bool ro_gui_window_menu_prepare(wimp_w w, wimp_i i, wimp_menu *menu,
|
||||
* be selected */
|
||||
|
||||
ro_gui_menu_set_entry_shaded(menu, BROWSER_SELECTION_SAVE,
|
||||
editor_flags & ~BW_EDITOR_CAN_COPY);
|
||||
~editor_flags & BW_EDITOR_CAN_COPY);
|
||||
|
||||
ro_gui_menu_set_entry_shaded(menu, BROWSER_SELECTION_COPY,
|
||||
editor_flags & ~BW_EDITOR_CAN_COPY);
|
||||
~editor_flags & BW_EDITOR_CAN_COPY);
|
||||
|
||||
ro_gui_menu_set_entry_shaded(menu, BROWSER_SELECTION_CUT,
|
||||
editor_flags & ~BW_EDITOR_CAN_CUT);
|
||||
~editor_flags & BW_EDITOR_CAN_CUT);
|
||||
|
||||
ro_gui_menu_set_entry_shaded(menu, BROWSER_SELECTION_PASTE,
|
||||
editor_flags & ~BW_EDITOR_CAN_PASTE);
|
||||
~editor_flags & BW_EDITOR_CAN_PASTE);
|
||||
|
||||
ro_gui_menu_set_entry_shaded(menu, BROWSER_SELECTION_CLEAR,
|
||||
editor_flags & ~BW_EDITOR_CAN_COPY);
|
||||
~editor_flags & BW_EDITOR_CAN_COPY);
|
||||
|
||||
|
||||
/* Navigate Submenu */
|
||||
|
Loading…
Reference in New Issue
Block a user