1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:37:37 +00:00

FileManager: Refresh DirectoryView after applying changes

Fixes: #9136
This commit is contained in:
LuK1337 2021-08-01 00:53:36 +02:00 committed by Gunnar Beutner
parent 92fd86901d
commit a91848c148
2 changed files with 6 additions and 0 deletions

View file

@ -285,6 +285,7 @@ int run_in_desktop_mode([[maybe_unused]] RefPtr<Core::ConfigFile> config)
desktop_widget.set_layout<GUI::VerticalBoxLayout>();
auto& directory_view = desktop_widget.add<DirectoryView>(DirectoryView::Mode::Desktop);
directory_view.set_name("directory_view");
auto cut_action = GUI::CommonActions::make_cut_action(
[&](auto&) {
@ -462,6 +463,7 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio
bool is_reacting_to_tree_view_selection_change = false;
auto& directory_view = splitter.add<DirectoryView>(DirectoryView::Mode::Normal);
directory_view.set_name("directory_view");
location_textbox.on_escape_pressed = [&] {
directory_view.set_focus(true);