Implement basic developer tools

This commit is contained in:
Tobias Fella
2022-11-16 22:30:28 +01:00
parent 752e7f4d9a
commit c58d8b58ff
12 changed files with 187 additions and 1 deletions

View File

@@ -174,5 +174,25 @@ Kirigami.ScrollablePage {
}
}
}
MobileForm.FormCard {
Layout.topMargin: Kirigami.Units.largeSpacing
Layout.fillWidth: true
contentItem: ColumnLayout {
spacing: 0
MobileForm.FormCardHeader {
title: i18n("Developer Settings")
}
MobileForm.FormCheckDelegate {
text: i18n("Enable Developer Tools")
checked: Config.developerTools
enabled: !Config.isDeveloperToolsImmutable
onToggled: {
Config.developerTools = checked
Config.save()
}
}
}
}
}
}