summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorYonatan Goldschmidt <yon.goldschmidt@gmail.com>2020-05-05 23:48:58 +0300
committerAndreas Kling <kling@serenityos.org>2020-05-06 12:14:07 +0200
commit83eb31bb2e68647286e58fa08753f5105d8acf6a (patch)
tree4e2411708f76f5b23bcbde5cc9dde9bceab3da78 /Applications
parentd6ab9e6790b0a4ac0ea6fa0bd293cc29e180b4f1 (diff)
downloadserenity-83eb31bb2e68647286e58fa08753f5105d8acf6a.zip
Taskbar: Remove checkable property from taskbar buttons
If a button is checkable, its "checked" state is inversed in Button::click. It's not needed for taskbar buttons - their checked state is updated in TaskbarWindow::wm_event, based on the current state of their window. Fixes: #1878.
Diffstat (limited to 'Applications')
-rw-r--r--Applications/Taskbar/TaskbarWindow.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/Applications/Taskbar/TaskbarWindow.cpp b/Applications/Taskbar/TaskbarWindow.cpp
index 424fcd1ee7..7e2638ebd0 100644
--- a/Applications/Taskbar/TaskbarWindow.cpp
+++ b/Applications/Taskbar/TaskbarWindow.cpp
@@ -135,7 +135,6 @@ NonnullRefPtr<GUI::Button> TaskbarWindow::create_button(const WindowIdentifier&
auto& button = main_widget()->add<TaskbarButton>(identifier);
button.set_size_policy(GUI::SizePolicy::Fixed, GUI::SizePolicy::Fixed);
button.set_preferred_size(140, 22);
- button.set_checkable(true);
button.set_text_alignment(Gfx::TextAlignment::CenterLeft);
button.set_icon(*m_default_icon);
return button;