mirror of
https://github.com/RGBCube/serenity
synced 2025-05-25 19:05:07 +00:00
FileManager: Update the error label overlay on back/forward navigation
Fixes #3817.
This commit is contained in:
parent
39a7358b51
commit
460d3e3969
1 changed files with 2 additions and 0 deletions
|
@ -372,6 +372,7 @@ void DirectoryView::refresh()
|
|||
void DirectoryView::open_previous_directory()
|
||||
{
|
||||
if (m_path_history_position > 0) {
|
||||
set_active_widget(¤t_view());
|
||||
m_path_history_position--;
|
||||
model().set_root_path(m_path_history[m_path_history_position]);
|
||||
}
|
||||
|
@ -379,6 +380,7 @@ void DirectoryView::open_previous_directory()
|
|||
void DirectoryView::open_next_directory()
|
||||
{
|
||||
if (m_path_history_position < m_path_history.size() - 1) {
|
||||
set_active_widget(¤t_view());
|
||||
m_path_history_position++;
|
||||
model().set_root_path(m_path_history[m_path_history_position]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue