mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-13 18:00:40 +00:00
Taskbar: Set window title as taskbar button tooltip
This way it's easier to find the right window when many are open at the same time, as all buttons share a limited amount of horizontal space and titles get truncated quickly.
This commit is contained in:
parent
2fde87e67d
commit
e288541a9b
Notes:
sideshowbarker
2024-07-18 21:02:24 +09:00
Author: https://github.com/linusg Commit: https://github.com/SerenityOS/serenity/commit/e288541a9b9 Pull-request: https://github.com/SerenityOS/serenity/pull/5974
1 changed files with 1 additions and 0 deletions
|
@ -220,6 +220,7 @@ void TaskbarWindow::update_window_button(::Window& window, bool show_as_active)
|
|||
if (!button)
|
||||
return;
|
||||
button->set_text(window.title());
|
||||
button->set_tooltip(window.title());
|
||||
button->set_checked(show_as_active);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue