chore(autofmt)

This commit is contained in:
Lemmy
2026-03-20 19:09:19 -04:00
parent 1554d6851d
commit 56f3dbec82
+21 -21
View File
@@ -1,8 +1,8 @@
pragma Singleton pragma Singleton
import Qt.labs.folderlistmodel 2.10
import QtQml.Models
import QtQuick import QtQuick
import QtQml.Models
import Qt.labs.folderlistmodel 2.10
import Quickshell import Quickshell
import Quickshell.Io import Quickshell.Io
import qs.Commons import qs.Commons
@@ -51,29 +51,29 @@ Singleton {
path: filePath + "/brightness" path: filePath + "/brightness"
onTextChanged: () => { onTextChanged: () => {
if (!this.isWanted) if (!this.isWanted)
return return;
if (!this.initialCheckDone) { if (!this.initialCheckDone) {
this.initialCheckDone = true this.initialCheckDone = true;
return return;
} }
var state = !this.text().startsWith("0") var state = !this.text().startsWith("0");
switch (fileName.split("::")[1]) { switch (fileName.split("::")[1]) {
case "numlock": case "numlock":
root.numLockOn = state root.numLockOn = state;
root.numLockChanged(state) root.numLockChanged(state);
Logger.i("LockKeysService", "Num Lock:", state, this.path); Logger.i("LockKeysService", "Num Lock:", state, this.path);
break break;
case "capslock": case "capslock":
root.capsLockOn = state root.capsLockOn = state;
root.capsLockChanged(state) root.capsLockChanged(state);
Logger.i("LockKeysService", "Caps Lock:", state, this.path); Logger.i("LockKeysService", "Caps Lock:", state, this.path);
break break;
case "scrolllock": case "scrolllock":
root.scrollLockOn = state root.scrollLockOn = state;
root.scrollLockChanged(state) root.scrollLockChanged(state);
Logger.i("LockKeysService", "Scroll Lock:", state, this.path); Logger.i("LockKeysService", "Scroll Lock:", state, this.path);
break break;
} }
} }
@@ -84,11 +84,11 @@ Singleton {
case "numlock": case "numlock":
case "capslock": case "capslock":
case "scrolllock": case "scrolllock":
return true return true;
} }
} }
Logger.i("LockKeysService", "ignoring:", this.path); Logger.i("LockKeysService", "ignoring:", this.path);
return false return false;
} }
// Skip first OSD event if one fires immediately after enabling // Skip first OSD event if one fires immediately after enabling
@@ -97,7 +97,7 @@ Singleton {
target: root target: root
function onShouldRunChanged() { function onShouldRunChanged() {
if (root.shouldRun) { if (root.shouldRun) {
this.initialCheckDone = false this.initialCheckDone = false;
} }
} }
} }