fix default settings (telemetry), and stop block controllers in a background thread.

This commit is contained in:
sawka 2024-09-05 16:36:03 -07:00
parent 0c506a1768
commit 05306e36d1
3 changed files with 7 additions and 10 deletions

View File

@ -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"},

View File

@ -66,9 +66,11 @@ func (svc *WindowService) CloseTab(ctx context.Context, uiContext waveobj.UICont
break
}
}
for _, blockId := range tab.BlockIds {
blockcontroller.StopBlockController(blockId)
}
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)
}

View File

@ -6,5 +6,6 @@
"autoupdate:installonquit": true,
"autoupdate:intervalms": 3600000,
"editor:minimapenabled": true,
"window:tilegapsize": 3
"window:tilegapsize": 3,
"telemetry:enabled": true
}