mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-13 17:49:03 +00:00
UtilitiesCard: close SidePanel when we start recording
This commit is contained in:
@@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user