mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
FileManager: Defer setting FileSystemModel root path in DirectoryView
Otherwise we always load the root directory on startup before switching to whatever directory we actually wanted to open.
This commit is contained in:
@@ -127,7 +127,7 @@ void DirectoryView::handle_activation(const GUI::ModelIndex& index)
|
||||
|
||||
DirectoryView::DirectoryView(Mode mode)
|
||||
: m_mode(mode)
|
||||
, m_model(GUI::FileSystemModel::create())
|
||||
, m_model(GUI::FileSystemModel::create({}))
|
||||
, m_sorting_model(GUI::SortingProxyModel::create(m_model))
|
||||
{
|
||||
set_active_widget(nullptr);
|
||||
|
||||
Reference in New Issue
Block a user