From 315ff425a5b6860bd101f220c2bb269130d741b2 Mon Sep 17 00:00:00 2001 From: Rory Fewell Date: Tue, 14 Oct 2025 19:15:11 +0100 Subject: [PATCH] Bugfix: For #529, fix taskband toolbars duplicating on window remap --- shell/taskband/src/window.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/shell/taskband/src/window.c b/shell/taskband/src/window.c index ff8a73c..3653b12 100644 --- a/shell/taskband/src/window.c +++ b/shell/taskband/src/window.c @@ -264,6 +264,13 @@ static gboolean on_window_map_event( { WinTCTaskbandWindow* taskband = WINTC_TASKBAND_WINDOW(self); + // If we already spawned the toolbars, don't do it again + // + if (taskband->toolbars) + { + return TRUE; + } + // Spawn toolbars // for (guint i = 0; i < G_N_ELEMENTS(S_LAYOUT); i++)