mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-07 19:57:45 +03:00
FileManager: Disable open_parent_directory_action if the new path is "/"
This commit is contained in:
parent
421b6cd393
commit
1617be1e6f
Notes:
sideshowbarker
2024-07-19 07:17:06 +09:00
Author: https://github.com/zlotny Commit: https://github.com/SerenityOS/serenity/commit/1617be1e6f1 Pull-request: https://github.com/SerenityOS/serenity/pull/1966
@ -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…
Reference in New Issue
Block a user