diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-02-03 14:03:46 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-02-04 12:27:10 +0100 |
commit | 87f4c9e580500a6a48db225232c5670e7b9fa5b1 (patch) | |
tree | a22621eef4cb462052daaeb72a7bd8fbdbb90ff3 /Userland/Applications/SpaceAnalyzer | |
parent | 1ec59cc52a426bcc283645fa46e490c7fe23eef5 (diff) | |
download | serenity-87f4c9e580500a6a48db225232c5670e7b9fa5b1.zip |
SpaceAnalyzer: Give the Analyze action an icon and F5 shortcut
This action is basically equivalent to "Refresh", so let's use the
common shortcut for that.
Diffstat (limited to 'Userland/Applications/SpaceAnalyzer')
-rw-r--r-- | Userland/Applications/SpaceAnalyzer/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Applications/SpaceAnalyzer/main.cpp b/Userland/Applications/SpaceAnalyzer/main.cpp index 2cd91bfa2f..20c8c04f4d 100644 --- a/Userland/Applications/SpaceAnalyzer/main.cpp +++ b/Userland/Applications/SpaceAnalyzer/main.cpp @@ -62,7 +62,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments) treemapwidget.set_focus(true); auto file_menu = TRY(window->try_add_menu("&File")); - TRY(file_menu->try_add_action(GUI::Action::create("&Analyze", [&](auto&) { + TRY(file_menu->try_add_action(GUI::Action::create("&Analyze", { KeyCode::Key_F5 }, TRY(Gfx::Bitmap::load_from_file("/res/icons/16x16/reload.png"sv)), [&](auto&) { // FIXME: Just modify the tree in memory instead of traversing the entire file system if (auto result = treemapwidget.analyze(statusbar); result.is_error()) { GUI::MessageBox::show_error(window, DeprecatedString::formatted("{}", result.error())); |