Refresh list of connected XSWD apps
()
| 4137 | |
| 4138 | // Refresh list of connected XSWD apps |
| 4139 | func 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 |
| 4153 | func AskPermissionForRequestE(headerText string, params interface{}) (choice xswd.Permission, err error) { |
no test coverage detected