mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 10:27:35 +00:00
parent
92fd86901d
commit
a91848c148
2 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
|||
#include "PropertiesWindow.h"
|
||||
#include <AK/LexicalPath.h>
|
||||
#include <AK/NumberFormat.h>
|
||||
#include <Applications/FileManager/DirectoryView.h>
|
||||
#include <Applications/FileManager/PropertiesWindowGeneralTabGML.h>
|
||||
#include <LibDesktop/Launcher.h>
|
||||
#include <LibGUI/BoxLayout.h>
|
||||
|
@ -218,6 +219,9 @@ bool PropertiesWindow::apply_changes()
|
|||
m_permissions_dirty = false;
|
||||
}
|
||||
|
||||
auto directory_view = parent()->find_descendant_of_type_named<FileManager::DirectoryView>("directory_view");
|
||||
directory_view->refresh();
|
||||
|
||||
update();
|
||||
m_apply_button->set_enabled(false);
|
||||
return true;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue