1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:47:35 +00:00

HexEditor: Disable selection dependent actions when no selection is made

This applies for the "copy as hex", "copy as text", "copy as C code",
"fill selection" actions
This commit is contained in:
Samu698 2022-03-13 18:47:33 +01:00 committed by Andreas Kling
parent d694af8be0
commit 61b8834b1a
2 changed files with 39 additions and 16 deletions

View file

@ -55,6 +55,11 @@ private:
RefPtr<GUI::Action> m_layout_toolbar_action;
RefPtr<GUI::Action> m_layout_search_results_action;
RefPtr<GUI::Action> m_copy_hex_action;
RefPtr<GUI::Action> m_copy_text_action;
RefPtr<GUI::Action> m_copy_as_c_code_action;
RefPtr<GUI::Action> m_fill_selection_action;
GUI::ActionGroup m_bytes_per_row_actions;
RefPtr<GUI::Statusbar> m_statusbar;