Drop obsolete UI path fallback after rebase
This commit is contained in:
@@ -232,11 +232,6 @@ func newUIWithState(mode string, sess appstate.CurrentSession) *ui {
|
||||
}
|
||||
|
||||
func (u *ui) filter() {
|
||||
if len(u.state.CurrentPath) == 0 && len(u.currentPath) > 0 {
|
||||
u.state.CurrentPath = append([]string(nil), u.currentPath...)
|
||||
} else {
|
||||
u.currentPath = append([]string(nil), u.state.CurrentPath...)
|
||||
}
|
||||
u.state.SearchQuery = u.search.Text()
|
||||
visible, err := u.state.VisibleEntries()
|
||||
if err != nil {
|
||||
@@ -287,21 +282,18 @@ func (u *ui) selectedAttachmentNames() []string {
|
||||
func (u *ui) showEntriesSection() {
|
||||
u.state.Section = appstate.SectionEntries
|
||||
u.state.NavigateToPath(nil)
|
||||
u.currentPath = nil
|
||||
u.filter()
|
||||
}
|
||||
|
||||
func (u *ui) showTemplatesSection() {
|
||||
u.state.Section = appstate.SectionTemplates
|
||||
u.state.NavigateToPath(nil)
|
||||
u.currentPath = nil
|
||||
u.filter()
|
||||
}
|
||||
|
||||
func (u *ui) showRecycleBinSection() {
|
||||
u.state.Section = appstate.SectionRecycleBin
|
||||
u.state.NavigateToPath(nil)
|
||||
u.currentPath = nil
|
||||
u.filter()
|
||||
}
|
||||
|
||||
|
||||
@@ -241,7 +241,6 @@ func (u *ui) activateBreadcrumb(index int) {
|
||||
crumbs := u.breadcrumbLabels()
|
||||
path = append([]string{}, crumbs[1:index+1]...)
|
||||
}
|
||||
u.currentPath = append([]string(nil), path...)
|
||||
u.state.NavigateToPath(path)
|
||||
u.filter()
|
||||
if index >= len(u.breadcrumbLabels()) {
|
||||
|
||||
Reference in New Issue
Block a user