summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2022-07-22 14:50:18 +0300
committerMichele Calgaro <michele.calgaro@yahoo.it>2022-09-05 12:49:00 +0900
commit3f98571ee04e25101b93c951b6c21e42a2006646 (patch)
tree96b6992746d5f189cfd0bd493f0c498f8587ed29
parenta4c1a3f27eacb49baf2a79ad2630fe21634dfe9e (diff)
downloadtdebase-3f98571ee04e25101b93c951b6c21e42a2006646.tar.gz
tdebase-3f98571ee04e25101b93c951b6c21e42a2006646.zip
taskbar: update when icon size changed
just to be sure Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
-rw-r--r--kicker/taskbar/taskbar.cpp5
-rw-r--r--kicker/taskbar/taskbar.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/kicker/taskbar/taskbar.cpp b/kicker/taskbar/taskbar.cpp
index ed6c985be..d4e04f6b5 100644
--- a/kicker/taskbar/taskbar.cpp
+++ b/kicker/taskbar/taskbar.cpp
@@ -242,6 +242,7 @@ void TaskBar::configure()
bool wasDisplayIconsNText = m_displayIconsNText;
bool wasShowOnlyIconified = m_showOnlyIconified;
int wasShowTaskStates = m_showTaskStates;
+ int wasIconSize = m_iconSize;
m_showAllWindows = READ_MERGED_TASKBAR_SETTING(showAllWindows);
m_sortByDesktop = m_showAllWindows && READ_MERGED_TASKBAR_SETTING(sortByDesktop);
@@ -249,6 +250,7 @@ void TaskBar::configure()
m_showOnlyIconified = READ_MERGED_TASKBAR_SETTING(showOnlyIconified);
m_cycleWheel = READ_MERGED_TASKBAR_SETTING(cycleWheel);
m_showTaskStates = READ_MERGED_TASKBAR_SETTING(showTaskStates);
+ m_iconSize = READ_MERGED_TASKBAR_SETTING(iconSize);
m_currentScreen = -1; // Show all screens or re-get our screen
m_showOnlyCurrentScreen = (READ_MERGED_TASKBAR_SETTING(showCurrentScreenOnly) &&
@@ -273,7 +275,8 @@ void TaskBar::configure()
wasDisplayIconsNText != m_displayIconsNText ||
wasCycleWheel != m_cycleWheel ||
wasShowOnlyIconified != m_showOnlyIconified ||
- wasShowTaskStates != m_showTaskStates)
+ wasShowTaskStates != m_showTaskStates ||
+ wasIconSize != m_iconSize)
{
// relevant settings changed, update our task containers
for (TaskContainer::Iterator it = containers.begin();
diff --git a/kicker/taskbar/taskbar.h b/kicker/taskbar/taskbar.h
index 1b2895789..c641afef7 100644
--- a/kicker/taskbar/taskbar.h
+++ b/kicker/taskbar/taskbar.h
@@ -153,6 +153,7 @@ private:
int m_displayIconsNText;
bool m_showOnlyIconified;
int m_showTaskStates;
+ int m_iconSize;
ArrowType arrowType;
TaskContainer::List containers;
TaskContainer::List m_hiddenContainers;