1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 20:57:35 +00:00

HexEditor: Show status tips in Statusbar

This commit is contained in:
Sam Atkins 2023-06-17 16:54:33 +01:00 committed by Andreas Kling
parent 200892868a
commit aa7346d23e

View file

@ -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)