mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +00:00
parent
92fd86901d
commit
a91848c148
2 changed files with 6 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
#include "PropertiesWindow.h"
|
#include "PropertiesWindow.h"
|
||||||
#include <AK/LexicalPath.h>
|
#include <AK/LexicalPath.h>
|
||||||
#include <AK/NumberFormat.h>
|
#include <AK/NumberFormat.h>
|
||||||
|
#include <Applications/FileManager/DirectoryView.h>
|
||||||
#include <Applications/FileManager/PropertiesWindowGeneralTabGML.h>
|
#include <Applications/FileManager/PropertiesWindowGeneralTabGML.h>
|
||||||
#include <LibDesktop/Launcher.h>
|
#include <LibDesktop/Launcher.h>
|
||||||
#include <LibGUI/BoxLayout.h>
|
#include <LibGUI/BoxLayout.h>
|
||||||
|
@ -218,6 +219,9 @@ bool PropertiesWindow::apply_changes()
|
||||||
m_permissions_dirty = false;
|
m_permissions_dirty = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
auto directory_view = parent()->find_descendant_of_type_named<FileManager::DirectoryView>("directory_view");
|
||||||
|
directory_view->refresh();
|
||||||
|
|
||||||
update();
|
update();
|
||||||
m_apply_button->set_enabled(false);
|
m_apply_button->set_enabled(false);
|
||||||
return true;
|
return true;
|
||||||
|
|
|
@ -285,6 +285,7 @@ int run_in_desktop_mode([[maybe_unused]] RefPtr<Core::ConfigFile> config)
|
||||||
desktop_widget.set_layout<GUI::VerticalBoxLayout>();
|
desktop_widget.set_layout<GUI::VerticalBoxLayout>();
|
||||||
|
|
||||||
auto& directory_view = desktop_widget.add<DirectoryView>(DirectoryView::Mode::Desktop);
|
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 cut_action = GUI::CommonActions::make_cut_action(
|
||||||
[&](auto&) {
|
[&](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;
|
bool is_reacting_to_tree_view_selection_change = false;
|
||||||
|
|
||||||
auto& directory_view = splitter.add<DirectoryView>(DirectoryView::Mode::Normal);
|
auto& directory_view = splitter.add<DirectoryView>(DirectoryView::Mode::Normal);
|
||||||
|
directory_view.set_name("directory_view");
|
||||||
|
|
||||||
location_textbox.on_escape_pressed = [&] {
|
location_textbox.on_escape_pressed = [&] {
|
||||||
directory_view.set_focus(true);
|
directory_view.set_focus(true);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue