1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 03:17:35 +00:00

SpaceAnalyzer: Do not reset the path to '/' after a refresh

Clicking analyze or deleting a file would always cause the tree view in
the widget to reset back to viewing the root. This was changed to stay
in the directory currently being viewed
This commit is contained in:
Arda Cinar 2022-12-13 12:25:40 +03:00 committed by Sam Atkins
parent c045ae1a96
commit 33ea96912a
3 changed files with 26 additions and 6 deletions

View file

@ -51,6 +51,7 @@ private:
void lay_out_children(TreeNode const&, Gfx::IntRect const&, int depth, Function);
void paint_cell_frame(GUI::Painter&, TreeNode const&, Gfx::IntRect const&, Gfx::IntRect const&, int depth, HasLabel has_label) const;
Vector<DeprecatedString> path_to_position(Gfx::IntPoint);
void recalculate_path_for_new_tree();
RefPtr<Tree> m_tree;
Vector<DeprecatedString> m_path;