Settings window #20

Merged
Zacharias-Brohn merged 83 commits from settingsWindow into main 2026-03-06 23:27:24 +01:00
2 changed files with 8 additions and 9 deletions
Showing only changes of commit 11da456048 - Show all commits
+1 -1
View File
@@ -1,7 +1,7 @@
[General]
FunctionsSpacing=true
IndentWidth=4
MaxColumnWidth=80
MaxColumnWidth=-1
NewlineType=native
NormalizeOrder=true
ObjectsSpacing=true
+2 -3
View File
@@ -16,6 +16,7 @@ import qs.Config
Singleton {
id: root
readonly property var appCooldownMap: new Map()
property alias dnd: props.dnd
property list<Notif> list: []
property bool loaded
@@ -23,8 +24,6 @@ Singleton {
readonly property list<Notif> popups: list.filter(n => n.popup)
property alias server: server
readonly property var appCooldownMap: new Map()
function shouldThrottle(appName: string): bool {
if (props.dnd)
return false;
@@ -42,7 +41,7 @@ Singleton {
if (now < until)
return false;
appCooldownMap.set( key, now + cooldownMs )
appCooldownMap.set(key, now + cooldownMs);
return true;
}