| ... | @@ -151,7 +151,9 @@ final class SectionStrip: UIView { | ... | @@ -151,7 +151,9 @@ final class SectionStrip: UIView { |
| 151 | let group = tab.group.split(separator: "/").first.map(String.init) | 151 | let group = tab.group.split(separator: "/").first.map(String.init) |
| 152 | if let group { | 152 | if let group { |
| 153 | guard groups.insert(group).inserted else { continue } | 153 | guard groups.insert(group).inserted else { continue } |
| 154 | let inside = notebook.tabs.filter { $0.readable && $0.group.hasPrefix(group) } | 154 | let inside = notebook.tabs.filter { |
| | 155 | $0.readable && ($0.group == group || $0.group.hasPrefix(group + "/")) |
| | 156 | } |
| 155 | let current = inside.first { $0.path == path } | 157 | let current = inside.first { $0.path == path } |
| 156 | row.addArrangedSubview( | 158 | row.addArrangedSubview( |
| 157 | button(current?.name ?? group, color: current?.uiColor ?? .systemGray, raised: current != nil, | 159 | button(current?.name ?? group, color: current?.uiColor ?? .systemGray, raised: current != nil, |