diff options
author | thankyouverycool <66646555+thankyouverycool@users.noreply.github.com> | 2022-11-24 19:04:22 -0500 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-12-10 13:15:35 +0100 |
commit | 5e96ad0345acd660f83e50a46975648cdc69ed9c (patch) | |
tree | 827f877a60d915e76cbb22610ab74ef6494d9f46 /Userland/Applications/Magnifier | |
parent | 0c2f36966cb26755129e30c16a978cc9f77fe577 (diff) | |
download | serenity-5e96ad0345acd660f83e50a46975648cdc69ed9c.zip |
Magnifier: Standardize File menu
File->Quit should appear as the final item in its menu
Diffstat (limited to 'Userland/Applications/Magnifier')
-rw-r--r-- | Userland/Applications/Magnifier/main.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Userland/Applications/Magnifier/main.cpp b/Userland/Applications/Magnifier/main.cpp index 4535a6ed02..cba66e6db9 100644 --- a/Userland/Applications/Magnifier/main.cpp +++ b/Userland/Applications/Magnifier/main.cpp @@ -57,10 +57,6 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) auto magnifier = TRY(window->try_set_main_widget<MagnifierWidget>()); auto file_menu = TRY(window->try_add_menu("&File")); - TRY(file_menu->try_add_action(GUI::CommonActions::make_quit_action([&](auto&) { - app->quit(); - }))); - TRY(file_menu->try_add_action(GUI::CommonActions::make_save_as_action([&](auto&) { AK::DeprecatedString filename = "file for saving"; auto do_save = [&]() -> ErrorOr<void> { @@ -84,6 +80,10 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) warnln("Error saving bitmap to {}: {}", filename, result.error().string_literal()); } }))); + TRY(file_menu->try_add_separator()); + TRY(file_menu->try_add_action(GUI::CommonActions::make_quit_action([&](auto&) { + app->quit(); + }))); auto size_action_group = make<GUI::ActionGroup>(); |