mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 18:17:34 +00:00
LibGUI: Rename function to make intention clearer
This commit is contained in:
parent
50ca1b3d87
commit
791e881892
3 changed files with 4 additions and 4 deletions
|
@ -227,7 +227,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
TRY(edit_menu->try_add_action(GUI::Action::create("&Format GML", { Mod_Ctrl | Mod_Shift, Key_I }, [&](auto&) {
|
||||
auto formatted_gml_or_error = GUI::GML::format_gml(editor->text());
|
||||
if (!formatted_gml_or_error.is_error()) {
|
||||
editor->replace_all_text_while_keeping_undo_stack(formatted_gml_or_error.release_value());
|
||||
editor->replace_all_text_without_resetting_undo_stack(formatted_gml_or_error.release_value());
|
||||
} else {
|
||||
GUI::MessageBox::show(
|
||||
window,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue