mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 14:48:15 +00:00
HackStudio: Add header navigation
This commit is contained in:
@@ -33,6 +33,7 @@
|
||||
#include <LibGfx/Font.h>
|
||||
|
||||
extern RefPtr<EditorWrapper> g_current_editor_wrapper;
|
||||
extern Function<void(String)> g_open_file;
|
||||
|
||||
EditorWrapper::EditorWrapper()
|
||||
{
|
||||
@@ -67,6 +68,10 @@ EditorWrapper::EditorWrapper()
|
||||
m_editor->on_focus = [this] {
|
||||
g_current_editor_wrapper = this;
|
||||
};
|
||||
|
||||
m_editor->on_open = [this](String path) {
|
||||
g_open_file(path);
|
||||
};
|
||||
}
|
||||
|
||||
EditorWrapper::~EditorWrapper()
|
||||
|
||||
Reference in New Issue
Block a user