1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 04:58:13 +00:00

FileManager: Update the error label overlay on back/forward navigation

Fixes #3817.
This commit is contained in:
Andreas Kling 2020-10-22 18:27:28 +02:00
parent 39a7358b51
commit 460d3e3969

View file

@ -372,6 +372,7 @@ void DirectoryView::refresh()
void DirectoryView::open_previous_directory() void DirectoryView::open_previous_directory()
{ {
if (m_path_history_position > 0) { if (m_path_history_position > 0) {
set_active_widget(&current_view());
m_path_history_position--; m_path_history_position--;
model().set_root_path(m_path_history[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() void DirectoryView::open_next_directory()
{ {
if (m_path_history_position < m_path_history.size() - 1) { if (m_path_history_position < m_path_history.size() - 1) {
set_active_widget(&current_view());
m_path_history_position++; m_path_history_position++;
model().set_root_path(m_path_history[m_path_history_position]); model().set_root_path(m_path_history[m_path_history_position]);
} }