mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:07:35 +00:00
LibGUI+FileManager: Move has_{parent,child}_segment
logic into BCB
This commit is contained in:
parent
fcb5259796
commit
f5cf41eb5d
2 changed files with 5 additions and 2 deletions
|
@ -1155,8 +1155,8 @@ ErrorOr<int> run_in_windowed_mode(DeprecatedString const& initial_location, Depr
|
|||
paste_action->set_enabled(can_write_in_path && GUI::Clipboard::the().fetch_mime_type() == "text/uri-list");
|
||||
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 != "/");
|
||||
open_child_directory_action->set_enabled(breadcrumbbar.selected_segment().has_value() && *breadcrumbbar.selected_segment() < breadcrumbbar.segment_count() - 1);
|
||||
open_parent_directory_action->set_enabled(breadcrumbbar.has_parent_segment());
|
||||
open_child_directory_action->set_enabled(breadcrumbbar.has_child_segment());
|
||||
directory_view->view_as_table_action().set_enabled(can_read_in_path);
|
||||
directory_view->view_as_icons_action().set_enabled(can_read_in_path);
|
||||
directory_view->view_as_columns_action().set_enabled(can_read_in_path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue