From cada51eac6ab06cb6ac724375e5d17f31debf8cc Mon Sep 17 00:00:00 2001 From: Hue Date: Sun, 22 Feb 2026 18:22:24 +0100 Subject: [PATCH] =?UTF-8?q?panel=C2=A0:=20do=20not=20rely=20on=20option=20?= =?UTF-8?q?reload=20to=20set=20center=20widget=20We=20must=20check=20that?= =?UTF-8?q?=20there=20are=20center=20widgets=20and=20set=20the=20panel=20c?= =?UTF-8?q?enter=20widget=20in=20init=5Fwidgets=20without=20relying=20on?= =?UTF-8?q?=20option=20reload=20to=20do=20this=20for=20us,=20specifically?= =?UTF-8?q?=20center=20widget?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Authored by: Scott Moreau --- src/panel/panel.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/panel/panel.cpp b/src/panel/panel.cpp index 0a7fccbf..d883e7f6 100644 --- a/src/panel/panel.cpp +++ b/src/panel/panel.cpp @@ -371,6 +371,14 @@ class WayfirePanel::impl reload_widgets((std::string)left_widgets_opt, left_widgets, left_box); reload_widgets((std::string)right_widgets_opt, right_widgets, right_box); reload_widgets((std::string)center_widgets_opt, center_widgets, center_box); + + if (center_box.get_children().empty()) + { + content_box.unset_center_widget(); + } else + { + content_box.set_center_widget(center_box); + } } std::shared_ptr get_ipc_server_instance()