Notification: adjust layout
This commit is contained in:
parent
c8a056f332
commit
c16e6e7423
3 changed files with 16 additions and 8 deletions
|
|
@ -38,7 +38,12 @@ Item {
|
|||
function toggleHistory() {
|
||||
notificationHistoryPanel.toggle(getActiveScreen())
|
||||
}
|
||||
function toggleDoNotDisturb() {// TODO
|
||||
function toggleDND() {
|
||||
Settings.data.notifications.doNotDisturb = !Settings.data.notifications.doNotDisturb
|
||||
ToastService.showNotice(
|
||||
Settings.data.notifications.doNotDisturb ? "Do Not Disturb enabled" : "Do Not Disturb disabled",
|
||||
Settings.data.notifications.doNotDisturb ? "Notifications will be hidden but saved to history" : "Notifications will be shown normally",
|
||||
"notice", false, 2000)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue