summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-20 14:23:41 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-20 14:23:41 +0100
commitadb6db9774ecc132305ee206271d17a3d0306300 (patch)
tree0cb5a0181c640e3b3a8f35c68ec8a2e6be9a67e7 /Userland
parent85271a4dd8b21cd877791530293151ec94b0df99 (diff)
downloadserenity-adb6db9774ecc132305ee206271d17a3d0306300.zip
FileManager: Set tooltips on the path breadcrumb bar
Each segment of the breadcrumb bar now shows the path it represents.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Applications/FileManager/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/FileManager/main.cpp b/Userland/Applications/FileManager/main.cpp
index e491136d4d..80819571f8 100644
--- a/Userland/Applications/FileManager/main.cpp
+++ b/Userland/Applications/FileManager/main.cpp
@@ -778,7 +778,7 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio
} else {
breadcrumb_bar.clear_segments();
- breadcrumb_bar.append_segment("/", GUI::FileIconProvider::icon_for_path("/").bitmap_for_size(16), "/");
+ breadcrumb_bar.append_segment("/", GUI::FileIconProvider::icon_for_path("/").bitmap_for_size(16), "/", "/");
StringBuilder builder;
for (auto& part : lexical_path.parts()) {
@@ -786,7 +786,7 @@ int run_in_windowed_mode(RefPtr<Core::ConfigFile> config, String initial_locatio
builder.append('/');
builder.append(part);
- breadcrumb_bar.append_segment(part, GUI::FileIconProvider::icon_for_path(builder.string_view()).bitmap_for_size(16), builder.string_view());
+ breadcrumb_bar.append_segment(part, GUI::FileIconProvider::icon_for_path(builder.string_view()).bitmap_for_size(16), builder.string_view(), builder.string_view());
}
breadcrumb_bar.set_selected_segment(breadcrumb_bar.segment_count() - 1);