Added switcher "Allow app screenshots" for android

This commit is contained in:
vladimir.kuznetsov 2023-10-01 12:06:50 +03:00
parent ed1afa7549
commit 4e3955b39d
5 changed files with 74 additions and 9 deletions

View file

@ -43,6 +43,26 @@ PageType {
headerText: qsTr("Application")
}
SwitcherType {
visible: GC.isMobile()
Layout.fillWidth: true
Layout.margins: 16
text: qsTr("Allow application screenshots")
checked: SettingsController.isScreenshotsEnabled()
onCheckedChanged: {
if (checked !== SettingsController.isScreenshotsEnabled()) {
SettingsController.toggleScreenshotsEnabled(checked)
}
}
}
DividerType {
visible: GC.isMobile()
}
SwitcherType {
visible: !GC.isMobile()