MCPcopy Create free account
hub / github.com/DEROFDN/Engram / refreshXSWDList

Function refreshXSWDList

functions.go:4139–4150  ·  view source on GitHub ↗

Refresh list of connected XSWD apps

()

Source from the content-addressed store, hash-verified

4137
4138// Refresh list of connected XSWD apps
4139func refreshXSWDList() {
4140 time.Sleep(time.Second)
4141 if cyberdeck.WS.server != nil {
4142 cyberdeck.WS.apps = cyberdeck.WS.server.GetApplications()
4143 sort.Slice(cyberdeck.WS.apps, func(i, j int) bool { return cyberdeck.WS.apps[i].Name < cyberdeck.WS.apps[j].Name })
4144 if cyberdeck.WS.list != nil {
4145 cyberdeck.WS.list.UnselectAll()
4146 cyberdeck.WS.list.FocusLost()
4147 cyberdeck.WS.list.Refresh()
4148 }
4149 }
4150}
4151
4152// Ask permission to complete a specific Engram action, using xswd permissions to match existing requests that have params to display
4153func AskPermissionForRequestE(headerText string, params interface{}) (choice xswd.Permission, err error) {

Callers 3

XSWDPromptFunction · 0.85
AskPermissionForRequestFunction · 0.85
layoutCyberdeckFunction · 0.85

Calls 1

RefreshMethod · 0.80

Tested by

no test coverage detected