From a98d960ad424f71a2494739989168b84364746c5 Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 17 Jul 2020 21:51:14 -0400 Subject: [PATCH] Taskbar: Use Name from .af file as tooltip With this, System Monitor has "System Monitor" instead of "SystemMonitor" as tooltip, matching the app's title bar and menu bar title. Same for File Manager and Text Editor. --- Services/Taskbar/TaskbarWindow.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Services/Taskbar/TaskbarWindow.cpp b/Services/Taskbar/TaskbarWindow.cpp index 6347a67260..90620d9637 100644 --- a/Services/Taskbar/TaskbarWindow.cpp +++ b/Services/Taskbar/TaskbarWindow.cpp @@ -104,6 +104,7 @@ void TaskbarWindow::create_quick_launch_bar() auto af_path = String::format("/res/apps/%s", af_name.characters()); auto af = Core::ConfigFile::open(af_path); auto app_executable = af->read_entry("App", "Executable"); + auto app_name = af->read_entry("App", "Name"); auto app_icon_path = af->read_entry("Icons", "16x16"); auto& button = quick_launch_bar.add(); @@ -112,7 +113,7 @@ void TaskbarWindow::create_quick_launch_bar() button.set_button_style(Gfx::ButtonStyle::CoolBar); button.set_icon(Gfx::Bitmap::load_from_file(app_icon_path)); - button.set_tooltip(name); + button.set_tooltip(app_name); button.on_click = [app_executable](auto) { pid_t pid = fork(); if (pid < 0) {