mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 10:38:11 +00:00
FileManager: Disable open_parent_directory_action if the new path is "/"
This commit is contained in:
parent
421b6cd393
commit
1617be1e6f
1 changed files with 1 additions and 0 deletions
|
@ -652,6 +652,7 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio
|
|||
go_forward_action->set_enabled(directory_view.path_history_position()
|
||||
< directory_view.path_history_size() - 1);
|
||||
go_back_action->set_enabled(directory_view.path_history_position() > 0);
|
||||
open_parent_directory_action->set_enabled(new_path != "/");
|
||||
};
|
||||
|
||||
directory_view.on_error = [&](int, const char* error_string, bool quit) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue