返回 DeepSeek-Reasonix
tab_order.go
根目录 / desktop / tab_order.go
1 package main
2
3 // removeTabOrderLocked drops the tab from the visible order and releases the
4 // browser grant that was scoped to it. Caller holds App.mu.
5 func (a *App) removeTabOrderLocked(tabID string) {
6 a.forgetBrowserExecutorLocked(tabID)
7 next := a.tabOrder[:0]
8 for _, id := range a.tabOrder {
9 if id != tabID {
10 next = append(next, id)
11 }
12 }
13 a.tabOrder = next
14 }
15
15 lines GO