Reworked Stats.qml and SysInfo to support nvidia, new theme yay!
This commit is contained in:
@@ -47,6 +47,8 @@ PanelWindow {
|
||||
}
|
||||
|
||||
function open() {
|
||||
var fm = Hyprland.focusedMonitor
|
||||
if (!fm || fm.name !== screen.name) return
|
||||
visible = true
|
||||
_open = true
|
||||
enterAnim.stop()
|
||||
@@ -61,7 +63,13 @@ PanelWindow {
|
||||
exitAnim.start()
|
||||
}
|
||||
|
||||
function toggle() { _open ? close() : open() }
|
||||
function toggle() {
|
||||
if (!_open) {
|
||||
var fm = Hyprland.focusedMonitor
|
||||
if (!fm || fm.name !== screen.name) return
|
||||
}
|
||||
_open ? close() : open()
|
||||
}
|
||||
|
||||
Timer {
|
||||
id: hideTimer
|
||||
|
||||
Reference in New Issue
Block a user