UtilitiesCard: close SidePanel when we start recording
This commit is contained in:
parent
9781005a21
commit
3e598cf1cd
1 changed files with 5 additions and 0 deletions
|
|
@ -31,6 +31,11 @@ NBox {
|
||||||
colorFg: ScreenRecorderService.isRecording ? Color.mOnPrimary : Color.mPrimary
|
colorFg: ScreenRecorderService.isRecording ? Color.mOnPrimary : Color.mPrimary
|
||||||
onClicked: {
|
onClicked: {
|
||||||
ScreenRecorderService.toggleRecording()
|
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()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue