mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-19 07:49:05 +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
Notes:
sideshowbarker
2024-07-18 05:16:04 +09:00
Author: https://github.com/SeekingBlues
Commit: d2af27d2d0
Pull-request: https://github.com/SerenityOS/serenity/pull/9341
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