mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-05 18:44:27 +03:00
FileManager: Update the error label overlay on back/forward navigation
Fixes #3817.
This commit is contained in:
parent
39a7358b51
commit
460d3e3969
Notes:
sideshowbarker
2024-07-19 01:48:18 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/460d3e39692
@ -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…
Reference in New Issue
Block a user