From 1dc1e62d574f600a9754b956683f40930a27812c Mon Sep 17 00:00:00 2001 From: Ay1nDas Date: Thu, 16 Oct 2025 00:26:56 +0530 Subject: [PATCH] Fix control bar tools icon size isn't applied when opening a new window Add 'apply_ctrlbar_settings()' in 'switchDesktop()' after populating tool_toolbars. Ensures icon size setting for tool_toolbars is successfully applied in new window. This MR in continuation of MR https://gitlab.com/inkscape/inkscape/-/merge_requests/7485 Fixes https://gitlab.com/inkscape/inkscape/-/issues/5920 --- src/ui/widget/desktop-widget.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/ui/widget/desktop-widget.cpp b/src/ui/widget/desktop-widget.cpp index c3dc3671a9..6d88bcff85 100644 --- a/src/ui/widget/desktop-widget.cpp +++ b/src/ui/widget/desktop-widget.cpp @@ -290,6 +290,7 @@ void SPDesktopWidget::switchDesktop(SPDesktop *desktop) auto set_tool = [this] { tool_toolbars->setTool(_desktop->getTool()); tool_toolbars->setActiveUnit(_desktop->getNamedView()->getDisplayUnit()); + apply_ctrlbar_settings(); // Apply size settings after populating the tool_toolbars }; _tool_changed_conn = _desktop->connectEventContextChanged([=] (auto, auto) { set_tool(); }); set_tool(); -- GitLab