chore: fix service linter warnings
This commit is contained in:
parent
407324208f
commit
beaefc6f36
7 changed files with 15 additions and 9 deletions
|
|
@ -92,7 +92,7 @@ Singleton {
|
|||
if (!stream)
|
||||
return qsTr("Unknown");
|
||||
// Try application name first, then description, then name
|
||||
return stream.applicationName || stream.description || stream.name || qsTr("Unknown Application");
|
||||
return stream.properties["application.name"] || stream.description || stream.name || qsTr("Unknown Application");
|
||||
}
|
||||
|
||||
onSinkChanged: {
|
||||
|
|
|
|||
|
|
@ -17,34 +17,34 @@ Singleton {
|
|||
map[m.connector] = m;
|
||||
return map;
|
||||
}
|
||||
readonly property list<Monitor> monitors: variants.instances
|
||||
readonly property list<Monitor> monitors: variants.instances // qmllint disable incompatible-type
|
||||
property bool appleDisplayPresent: false
|
||||
|
||||
function getMonitorForScreen(screen: ShellScreen): var {
|
||||
return monitors.find(m => m.modelData === screen);
|
||||
return monitors.find(m => m.modelData === screen); // qmllint disable missing-property
|
||||
}
|
||||
|
||||
function getMonitor(query: string): var {
|
||||
if (query === "active") {
|
||||
return monitors.find(m => Hypr.monitorFor(m.modelData)?.focused);
|
||||
return monitors.find(m => Hypr.monitorFor(m.modelData)?.focused); // qmllint disable missing-property
|
||||
}
|
||||
|
||||
if (query.startsWith("model:")) {
|
||||
const model = query.slice(6);
|
||||
return monitors.find(m => m.modelData.model === model);
|
||||
return monitors.find(m => m.modelData.model === model); // qmllint disable missing-property
|
||||
}
|
||||
|
||||
if (query.startsWith("serial:")) {
|
||||
const serial = query.slice(7);
|
||||
return monitors.find(m => m.modelData.serialNumber === serial);
|
||||
return monitors.find(m => m.modelData.serialNumber === serial); // qmllint disable missing-property
|
||||
}
|
||||
|
||||
if (query.startsWith("id:")) {
|
||||
const id = parseInt(query.slice(3), 10);
|
||||
return monitors.find(m => Hypr.monitorFor(m.modelData)?.id === id);
|
||||
return monitors.find(m => Hypr.monitorFor(m.modelData)?.id === id); // qmllint disable missing-property
|
||||
}
|
||||
|
||||
return monitors.find(m => m.modelData.name === query);
|
||||
return monitors.find(m => m.modelData.name === query); // qmllint disable missing-property
|
||||
}
|
||||
|
||||
function increaseBrightness(): void {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
pragma Singleton
|
||||
pragma ComponentBehavior: Bound
|
||||
|
||||
import qs.services
|
||||
import qs.config
|
||||
import qs.utils
|
||||
import Caelestia
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@ Singleton {
|
|||
PersistentProperties {
|
||||
id: props
|
||||
|
||||
property bool enabled: Hypr.options["animations:enabled"] === 0
|
||||
property bool enabled: Hypr.options["animations:enabled"] === 0 // qmllint disable missing-property
|
||||
|
||||
reloadableId: "gameMode"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
pragma ComponentBehavior: Bound
|
||||
|
||||
import qs.services
|
||||
import qs.config
|
||||
import qs.utils
|
||||
import Caelestia
|
||||
|
|
@ -139,7 +140,9 @@ QtObject {
|
|||
}
|
||||
|
||||
function onActionsChanged(): void {
|
||||
// qmllint disable unresolved-type
|
||||
notif.actions = notif.notification.actions.map(a => ({
|
||||
// qmllint enable unresolved-type
|
||||
identifier: a.identifier,
|
||||
text: a.text,
|
||||
invoke: () => a.invoke()
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
pragma Singleton
|
||||
|
||||
import qs.components
|
||||
import qs.services
|
||||
import Quickshell
|
||||
|
||||
Singleton {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
pragma Singleton
|
||||
|
||||
import qs.services
|
||||
import qs.config
|
||||
import qs.utils
|
||||
import Caelestia.Models
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue