1
Fork 0
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:
Andreas Kling 2021-01-01 01:55:30 +01:00
parent 950a736127
commit 4ea4cd5ee3

View file

@ -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);