ladybird/Userland/Applications/FileManager
Sam Atkins f5e63f785a FileManager: Remove clicked breadcrumbs for non-existing directories
This fixes #8204.

In the case that we just navigated up from a directory because it was
deleted, we can detect that easily by checking if the child directory
exists, and then remove the relevant breadcrumbs immediately.

However, it's harder to notice if a child directory for a breadcrumb
is deleted at another time. Previously, clicking that breadcrumb would
crash, but now we check to see if the directory it points to actually
exists. If it doesn't, we pop that breadcrumb and any after it, off
of the breadcrumbbar.

This may not be the ideal solution - maybe it should detect that the
directory is gone automatically - but it works and doesn't involve
managing additional directory watchers.
2021-07-01 17:15:26 +04:30
..
CMakeLists.txt Everywhere: Add component declarations 2021-06-17 11:03:51 +02:00
DesktopWidget.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
DesktopWidget.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
DirectoryView.cpp AK+Everywhere: Add and use static APIs for LexicalPath 2021-06-30 11:13:54 +02:00
DirectoryView.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
FileManagerWindow.gml FileManager: Set minimum folder pane width 2021-05-13 00:43:41 +01:00
FileOperationProgress.gml FileManager: Estimate transfer time 2021-04-17 09:41:35 +02:00
FileOperationProgressWidget.cpp AK+Everywhere: Disallow constructing Functions from incompatible types 2021-06-06 00:27:30 +04:30
FileOperationProgressWidget.h Everywhere: "file name" => "filename" 2021-04-29 22:16:18 +02:00
FileUtils.cpp AK+Everywhere: Add and use static APIs for LexicalPath 2021-06-30 11:13:54 +02:00
FileUtils.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
main.cpp FileManager: Remove clicked breadcrumbs for non-existing directories 2021-07-01 17:15:26 +04:30
PropertiesWindow.cpp AK: Remove the LexicalPath::is_valid() API 2021-06-30 11:13:54 +02:00
PropertiesWindow.h Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00