format update

This commit is contained in:
notiant
2026-01-23 00:39:21 +01:00
committed by GitHub
parent 8bfd65e0c0
commit 13b8346f32
2 changed files with 5 additions and 3 deletions
+1
View File
@@ -287,6 +287,7 @@ Loader {
event.accepted = true;
}
}
Component.onCompleted: forceActiveFocus()
}
+4 -3
View File
@@ -1,9 +1,9 @@
pragma Singleton
import QtQuick
import Quickshell
import Quickshell.Io
import Quickshell.Services.UPower
import QtQuick
import qs.Commons
import qs.Services.Networking
import qs.Services.UI
@@ -108,9 +108,10 @@ Singleton {
})
stdout: SplitParser {
onRead: function(data) {
onRead: function (data) {
var line = data.trim();
if (line === "") return;
if (line === "")
return;
var capacityMatch = line.match(/^\s*capacity:\s*(\d+(?:\.\d+)?)\s*%/i);
if (capacityMatch) {