1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:07:34 +00:00

LibGUI: Give recent-file actions a nicer status tip

"Open /path/to/file" instead of just "/path/to/file".
This commit is contained in:
Sam Atkins 2023-06-17 16:37:55 +01:00 committed by Andreas Kling
parent c374541711
commit 506f9484e3

View file

@ -360,6 +360,7 @@ void Application::update_recent_file_actions()
action->set_visible(true); action->set_visible(true);
action->set_enabled(true); action->set_enabled(true);
action->set_text(path); action->set_text(path);
action->set_status_tip(String::formatted("Open {}", path).release_value_but_fixme_should_propagate_errors());
++number_of_recently_open_files; ++number_of_recently_open_files;
} }
}; };