mirror of
https://github.com/zoriya/noctalia-shell.git
synced 2026-08-15 18:43:59 +00:00
Fix Cava
This commit is contained in:
@@ -20,6 +20,7 @@ Scope {
|
||||
}
|
||||
})
|
||||
property var values: Array(count).fill(0) // 0 <= value <= 1
|
||||
property bool running: true // Controls whether cava is active
|
||||
|
||||
onConfigChanged: {
|
||||
process.running = false
|
||||
@@ -31,6 +32,7 @@ Scope {
|
||||
id: process
|
||||
stdinEnabled: true
|
||||
command: ["cava", "-p", "/dev/stdin"]
|
||||
running: root.running // Bind process running to the new property
|
||||
onExited: { stdinEnabled = true; index = 0 }
|
||||
onStarted: {
|
||||
const iniParts = []
|
||||
|
||||
@@ -406,5 +406,6 @@ Rectangle {
|
||||
Cava {
|
||||
id: cava
|
||||
count: 64
|
||||
running: currentPlayer && currentPlayer.isPlaying
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user