dashboard: hide dash when raise media
This commit is contained in:
parent
c7ab79908b
commit
0cf46c4409
2 changed files with 4 additions and 1 deletions
|
|
@ -103,6 +103,7 @@ Item {
|
||||||
|
|
||||||
Media {
|
Media {
|
||||||
shouldUpdate: visible && media === view.currentItem
|
shouldUpdate: visible && media === view.currentItem
|
||||||
|
visibilities: root.visibilities
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import "root:/widgets"
|
||||||
import "root:/services"
|
import "root:/services"
|
||||||
import "root:/utils"
|
import "root:/utils"
|
||||||
import "root:/config"
|
import "root:/config"
|
||||||
import Quickshell.Io
|
import Quickshell
|
||||||
import Quickshell.Widgets
|
import Quickshell.Widgets
|
||||||
import Quickshell.Services.Mpris
|
import Quickshell.Services.Mpris
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
|
@ -15,6 +15,7 @@ Item {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
required property bool shouldUpdate
|
required property bool shouldUpdate
|
||||||
|
required property PersistentProperties visibilities
|
||||||
|
|
||||||
property real playerProgress: {
|
property real playerProgress: {
|
||||||
const active = Players.active;
|
const active = Players.active;
|
||||||
|
|
@ -339,6 +340,7 @@ Item {
|
||||||
|
|
||||||
function onClicked(): void {
|
function onClicked(): void {
|
||||||
Players.active?.raise();
|
Players.active?.raise();
|
||||||
|
root.visibilities.dashboard = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue