UtilitiesCard: close SidePanel when we start recording

This commit is contained in:
Ly-sec 2025-09-02 14:37:54 +02:00
parent 9781005a21
commit 3e598cf1cd

View file

@ -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()
}
}
}