浏览代码

HexEditor: Offset segment in status bar opens goto offset dialog

Samu698 3 年之前
父节点
当前提交
d694af8be0
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Userland/Applications/HexEditor/HexEditorWidget.cpp

+ 3 - 0
Userland/Applications/HexEditor/HexEditorWidget.cpp

@@ -190,6 +190,9 @@ HexEditorWidget::HexEditorWidget()
     m_toolbar->add_action(*m_find_action);
     m_toolbar->add_action(*m_find_action);
     m_toolbar->add_action(*m_goto_offset_action);
     m_toolbar->add_action(*m_goto_offset_action);
 
 
+    m_statusbar->segment(0).set_clickable(true);
+    m_statusbar->segment(0).set_action(*m_goto_offset_action);
+
     m_editor->set_focus(true);
     m_editor->set_focus(true);
 }
 }