forked from Shinonome/dots-hyprland
fix cant assign undefined warning
This commit is contained in:
@@ -12,7 +12,7 @@ import Quickshell.Wayland
|
|||||||
Scope {
|
Scope {
|
||||||
id: root
|
id: root
|
||||||
property bool showOsdValues: false
|
property bool showOsdValues: false
|
||||||
property ShellScreen focusedScreen: Quickshell.screens.find(s => s.name === Hyprland.focusedMonitor?.name)
|
property var focusedScreen: Quickshell.screens.find(s => s.name === Hyprland.focusedMonitor?.name)
|
||||||
property var brightnessMonitor: Brightness.getMonitorForScreen(focusedScreen)
|
property var brightnessMonitor: Brightness.getMonitorForScreen(focusedScreen)
|
||||||
|
|
||||||
function triggerOsd() {
|
function triggerOsd() {
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ import Quickshell.Hyprland
|
|||||||
Scope {
|
Scope {
|
||||||
id: root
|
id: root
|
||||||
property bool showOsdValues: false
|
property bool showOsdValues: false
|
||||||
property ShellScreen focusedScreen: Quickshell.screens.find(s => s.name === Hyprland.focusedMonitor?.name)
|
property var focusedScreen: Quickshell.screens.find(s => s.name === Hyprland.focusedMonitor?.name)
|
||||||
|
|
||||||
function triggerOsd() {
|
function triggerOsd() {
|
||||||
showOsdValues = true
|
showOsdValues = true
|
||||||
|
|||||||
Reference in New Issue
Block a user