From 3e598cf1cd492bdd9959b6df23d0b3de0b65dcd7 Mon Sep 17 00:00:00 2001 From: Ly-sec Date: Tue, 2 Sep 2025 14:37:54 +0200 Subject: [PATCH] UtilitiesCard: close SidePanel when we start recording --- Modules/SidePanel/Cards/UtilitiesCard.qml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Modules/SidePanel/Cards/UtilitiesCard.qml b/Modules/SidePanel/Cards/UtilitiesCard.qml index 6c8ce28..f295224 100644 --- a/Modules/SidePanel/Cards/UtilitiesCard.qml +++ b/Modules/SidePanel/Cards/UtilitiesCard.qml @@ -31,6 +31,11 @@ NBox { colorFg: ScreenRecorderService.isRecording ? Color.mOnPrimary : Color.mPrimary onClicked: { ScreenRecorderService.toggleRecording() + // If we were not recording and we just initiated a start, close the panel + if (!ScreenRecorderService.isRecording) { + var panel = PanelService.getPanel("sidePanel") + panel && panel.close() + } } }