PixelPaint: Use default buttons in EditGuideDialog

This commit is contained in:
Karol Kosek 2022-05-27 19:36:48 +02:00 committed by Andreas Kling
parent 9f1f1b8472
commit 72be27e16c
Notes: sideshowbarker 2024-07-17 10:30:06 +09:00

View file

@ -70,6 +70,7 @@ EditGuideDialog::EditGuideDialog(GUI::Window* parent_window, String const& offse
done(ExecResult::OK);
};
ok_button->set_default(true);
cancel_button->on_click = [this](auto) {
done(ExecResult::Cancel);