mirror of
https://github.com/wavetermdev/waveterm.git
synced 2025-01-02 18:39:05 +01:00
fix default settings (telemetry), and stop block controllers in a background thread.
This commit is contained in:
parent
0c506a1768
commit
05306e36d1
@ -199,12 +199,6 @@ func (svc *ObjectService) DeleteBlock(uiContext waveobj.UIContext, blockId strin
|
||||
return waveobj.ContextGetUpdatesRtn(ctx), nil
|
||||
}
|
||||
|
||||
func (svc *ObjectService) CloseTab_Meta() tsgenmeta.MethodMeta {
|
||||
return tsgenmeta.MethodMeta{
|
||||
ArgNames: []string{"uiContext", "tabId"},
|
||||
}
|
||||
}
|
||||
|
||||
func (svc *ObjectService) UpdateObjectMeta_Meta() tsgenmeta.MethodMeta {
|
||||
return tsgenmeta.MethodMeta{
|
||||
ArgNames: []string{"uiContext", "oref", "meta"},
|
||||
|
@ -66,9 +66,11 @@ func (svc *WindowService) CloseTab(ctx context.Context, uiContext waveobj.UICont
|
||||
break
|
||||
}
|
||||
}
|
||||
go func() {
|
||||
for _, blockId := range tab.BlockIds {
|
||||
blockcontroller.StopBlockController(blockId)
|
||||
}
|
||||
}()
|
||||
if err := wcore.DeleteTab(ctx, window.WorkspaceId, tabId); err != nil {
|
||||
return nil, fmt.Errorf("error closing tab: %w", err)
|
||||
}
|
||||
|
@ -6,5 +6,6 @@
|
||||
"autoupdate:installonquit": true,
|
||||
"autoupdate:intervalms": 3600000,
|
||||
"editor:minimapenabled": true,
|
||||
"window:tilegapsize": 3
|
||||
"window:tilegapsize": 3,
|
||||
"telemetry:enabled": true
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user