mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-29 20:59:00 +00:00
HexEditor: Show status tips in Statusbar
This commit is contained in:
parent
200892868a
commit
aa7346d23e
Notes:
sideshowbarker
2024-07-17 02:37:08 +09:00
Author: https://github.com/AtkinsSJ
Commit: aa7346d23e
Pull-request: https://github.com/SerenityOS/serenity/pull/19441
1 changed files with 7 additions and 0 deletions
|
@ -272,6 +272,13 @@ HexEditorWidget::HexEditorWidget()
|
|||
m_statusbar->segment(0).set_action(*m_goto_offset_action);
|
||||
|
||||
m_editor->set_focus(true);
|
||||
|
||||
GUI::Application::the()->on_action_enter = [this](GUI::Action& action) {
|
||||
m_statusbar->set_override_text(action.status_tip());
|
||||
};
|
||||
GUI::Application::the()->on_action_leave = [this](GUI::Action&) {
|
||||
m_statusbar->set_override_text({});
|
||||
};
|
||||
}
|
||||
|
||||
void HexEditorWidget::update_inspector_values(size_t position)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue