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

HexEditor: Port HexEditor to GML compilation

This commit is contained in:
tetektoza 2023-09-28 17:06:49 +02:00 committed by Tim Schumacher
parent bcec05a7cb
commit 935aaab757
15 changed files with 147 additions and 51 deletions

View file

@ -37,7 +37,8 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
window->restore_size_and_position("HexEditor"sv, "Window"sv, { { 640, 400 } });
window->save_size_and_position_on_close("HexEditor"sv, "Window"sv);
auto hex_editor_widget = window->set_main_widget<HexEditorWidget>();
auto hex_editor_widget = TRY(HexEditor::HexEditorWidget::create());
window->set_main_widget(hex_editor_widget);
window->on_close_request = [&]() -> GUI::Window::CloseRequestDecision {
if (hex_editor_widget->request_close())