mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2025-12-09 15:05:39 -05:00
processlist: fix context menu
This commit is contained in:
@@ -15,23 +15,6 @@ Singleton {
|
||||
readonly property real volumeLevel: (sink?.audio?.volume ?? 0) * 100
|
||||
readonly property real micLevel: (source?.audio?.volume ?? 0) * 100
|
||||
|
||||
signal audioVolumeChanged(real volume)
|
||||
signal audioMicLevelChanged(real level)
|
||||
signal audioMuteChanged(bool muted)
|
||||
signal audioMicMuteChanged(bool muted)
|
||||
signal audioDeviceChanged()
|
||||
|
||||
onVolumeLevelChanged: audioVolumeChanged(volumeLevel)
|
||||
onMicLevelChanged: audioMicLevelChanged(micLevel)
|
||||
onSinkMutedChanged: audioMuteChanged(sinkMuted)
|
||||
onSourceMutedChanged: audioMicMuteChanged(sourceMuted)
|
||||
onSinkChanged: {
|
||||
audioDeviceChanged()
|
||||
}
|
||||
onSourceChanged: {
|
||||
audioDeviceChanged()
|
||||
}
|
||||
|
||||
property var audioSinks: []
|
||||
property var audioSources: []
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@ PanelWindow {
|
||||
|
||||
// Monitor process dropdown visibility to enable/disable process monitoring
|
||||
onIsVisibleChanged: {
|
||||
console.log("Process dropdown", isVisible ? "opened" : "closed")
|
||||
ProcessMonitorService.enableMonitoring(isVisible)
|
||||
}
|
||||
|
||||
@@ -122,6 +121,7 @@ PanelWindow {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Click inside dropdown - consume the event
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
|
||||
@@ -35,7 +35,6 @@ PanelWindow {
|
||||
|
||||
// Monitor process widget visibility to enable/disable process monitoring
|
||||
onIsVisibleChanged: {
|
||||
console.log("Process list widget", isVisible ? "opened" : "closed")
|
||||
ProcessMonitorService.enableMonitoring(isVisible)
|
||||
}
|
||||
|
||||
@@ -1914,17 +1913,14 @@ PanelWindow {
|
||||
IpcHandler {
|
||||
target: "processlist"
|
||||
function open() {
|
||||
console.log("ProcessListWidget: IPC open() called")
|
||||
processListWidget.show()
|
||||
return "PROCESSLIST_OPEN_SUCCESS"
|
||||
}
|
||||
function close() {
|
||||
console.log("ProcessListWidget: IPC close() called")
|
||||
processListWidget.hide()
|
||||
return "PROCESSLIST_CLOSE_SUCCESS"
|
||||
}
|
||||
function toggle() {
|
||||
console.log("ProcessListWidget: IPC toggle() called")
|
||||
processListWidget.toggle()
|
||||
return "PROCESSLIST_TOGGLE_SUCCESS"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user