Added don't annoy me toggle to alarm clock.

Changed version to v2.2.1.
This commit is contained in:
2017-01-12 00:06:01 +01:00
parent 4cfcb933c5
commit ff885b63ce
4 changed files with 81 additions and 17 deletions
+14
View File
@@ -214,6 +214,16 @@ MyStackViewPage {
}
}
}
RowLayout {
MyToggleButton {
id: alarmDontAnnoyToggle
text: "Don't Annoy me"
onCheckedChanged: {
UtilitiesTabController.setAlarmIsModal(!checked, false)
}
}
}
}
}
@@ -223,6 +233,7 @@ MyStackViewPage {
Component.onCompleted: {
alarmClockToggle.checked = UtilitiesTabController.alarmEnabled
alarmDontAnnoyToggle.checked = !UtilitiesTabController.alarmIsModal
setAlarmHourText(UtilitiesTabController.alarmTimeHour)
setAlarmMinuteText(UtilitiesTabController.alarmTimeMinute)
alarmGroupBox.visible = !OverlayController.desktopMode
@@ -234,6 +245,9 @@ MyStackViewPage {
onAlarmEnabledChanged: {
alarmClockToggle.checked = UtilitiesTabController.alarmEnabled
}
onAlarmIsModalChanged: {
alarmDontAnnoyToggle.checked = !UtilitiesTabController.alarmIsModal
}
onAlarmTimeHourChanged: {
setAlarmHourText(UtilitiesTabController.alarmTimeHour)
}