mirror of
https://github.com/RGBCube/serenity
synced 2025-05-29 06:55:07 +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:
parent
950a736127
commit
4ea4cd5ee3
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue