mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 02:57:44 +00:00
FileManager: Change the cwd when opening a directory
The `open()` function of DirectoryView should change the current working directory, so that the "Go to Location" menu item can process relative paths correctly. Update other functions in DirectoryView to use `open()` when opening a directory.
This commit is contained in:
parent
ce66c40160
commit
d2af27d2d0
3 changed files with 17 additions and 20 deletions
|
@ -49,7 +49,7 @@ public:
|
|||
|
||||
virtual ~DirectoryView() override;
|
||||
|
||||
void open(String const& path);
|
||||
bool open(String const& path);
|
||||
String path() const { return model().root_path(); }
|
||||
void open_parent_directory();
|
||||
void open_previous_directory();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue