feat: add multi-session desktop workspace
This commit is contained in:
@@ -5,21 +5,25 @@ Item {
|
||||
id: root
|
||||
property var pluginApi: null
|
||||
|
||||
function setBridgeState(state, projectLabel, attentionCount, detail) {
|
||||
function setBridgeState(state, projectLabel, attentionCount, detail, openCount, workingCount, recoveringCount, errorCount) {
|
||||
if (!pluginApi)
|
||||
return
|
||||
pluginApi.pluginSettings.bridgeState = state
|
||||
pluginApi.pluginSettings.projectLabel = projectLabel
|
||||
pluginApi.pluginSettings.attentionCount = attentionCount
|
||||
pluginApi.pluginSettings.detail = detail
|
||||
pluginApi.pluginSettings.openCount = openCount ?? 0
|
||||
pluginApi.pluginSettings.workingCount = workingCount ?? 0
|
||||
pluginApi.pluginSettings.recoveringCount = recoveringCount ?? 0
|
||||
pluginApi.pluginSettings.errorCount = errorCount ?? 0
|
||||
pluginApi.saveSettings()
|
||||
}
|
||||
|
||||
IpcHandler {
|
||||
target: "plugin:pi-status-bridge"
|
||||
|
||||
function setBridgeState(state, projectLabel, attentionCount, detail) {
|
||||
root.setBridgeState(state, projectLabel, attentionCount, detail)
|
||||
function setBridgeState(state, projectLabel, attentionCount, detail, openCount, workingCount, recoveringCount, errorCount) {
|
||||
root.setBridgeState(state, projectLabel, attentionCount, detail, openCount, workingCount, recoveringCount, errorCount)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user