rapair to pop up

This commit is contained in:
Hannes
2026-06-16 19:09:09 +02:00
parent 5df0534c78
commit 3c41176933
2 changed files with 13 additions and 1 deletions
+11
View File
@@ -55,4 +55,15 @@ QtObject {
// Tray
readonly property int reload_interval: 10000
readonly property int fast_reload_interval: 1000
function maxTextWidth(maxNum, texts) {
let maxWidth = 0;
for (let i = 0; i < Math.min(maxNum, texts.length); i++)
maxWidth = Math.max(maxWidth, texts[i].width);
return maxWidth;
}
}