mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:48:10 +00:00
FileManager: Disable view change actions when directory is unreadable
Closes #3556.
This commit is contained in:
parent
1ccf9de6b9
commit
a0362d827c
3 changed files with 8 additions and 5 deletions
|
@ -169,7 +169,7 @@ void DirectoryView::setup_model()
|
|||
add_path_to_history(model().root_path());
|
||||
|
||||
if (on_path_change)
|
||||
on_path_change(failed_path, false);
|
||||
on_path_change(failed_path, false, false);
|
||||
};
|
||||
|
||||
m_model->on_complete = [this] {
|
||||
|
@ -186,7 +186,7 @@ void DirectoryView::setup_model()
|
|||
m_touch_action->set_enabled(can_write_in_path);
|
||||
|
||||
if (on_path_change)
|
||||
on_path_change(model().root_path(), can_write_in_path);
|
||||
on_path_change(model().root_path(), true, can_write_in_path);
|
||||
};
|
||||
|
||||
m_model->register_client(*this);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue