mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-24 09:16:09 +01:00
🎨 Improve the mouse hove data sync button information on the desktop and browser https://github.com/siyuan-note/siyuan/issues/8521
This commit is contained in:
parent
b53d210258
commit
d138e5c04c
1 changed files with 12 additions and 3 deletions
|
|
@ -653,10 +653,19 @@ var (
|
|||
onlineKernelsLock = sync.Mutex{}
|
||||
)
|
||||
|
||||
func GetOnlineKernels() []*OnlineKernel {
|
||||
func GetOnlineKernels() (ret []*OnlineKernel) {
|
||||
ret = []*OnlineKernel{}
|
||||
onlineKernelsLock.Lock()
|
||||
defer onlineKernelsLock.Unlock()
|
||||
return onlineKernels
|
||||
tmp := onlineKernels
|
||||
onlineKernelsLock.Unlock()
|
||||
for _, kernel := range tmp {
|
||||
if kernel.ID == kernelID {
|
||||
continue
|
||||
}
|
||||
|
||||
ret = append(ret, kernel)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
var closedSyncWebSocket = false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue