+
Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions core/tabs.go
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,8 @@ func RecycleTabWidget[T tree.NodeValue](ts *Tabs, name string) *T {
return w
}

// deleteTabIndex deletes the tab at the given index, returning whether it was successful.
func (ts *Tabs) deleteTabIndex(idx int) bool {
// DeleteTabIndex deletes the tab at the given index, returning whether it was successful.
func (ts *Tabs) DeleteTabIndex(idx int) bool {
frame, _ := ts.tabAtIndex(idx)
if frame == nil {
return false
Expand Down Expand Up @@ -537,7 +537,7 @@ func (tb *Tab) Init() {
if SystemSettings.OnlyCloseActiveTab && !tb.StateIs(states.Selected) {
ts.SelectTabIndex(idx)
} else {
ts.deleteTabIndex(idx)
ts.DeleteTabIndex(idx)
}
})
w.Updater(func() {
Expand Down
Loading
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载