Top-level tab state restoration

Changelog-Added: Top-level tab state restoration
Closes: #634
This commit is contained in:
Bryan Montz
2023-02-17 06:30:48 -06:00
committed by William Casarin
parent 9f701a7d44
commit c679be9644
4 changed files with 21 additions and 38 deletions

View File

@@ -37,7 +37,7 @@ func show_indicator(timeline: Timeline, current: NewEventsBits, indicator_settin
struct TabButton: View {
let timeline: Timeline
let img: String
@Binding var selected: Timeline?
@Binding var selected: Timeline
@Binding var new_events: NewEventsBits
let settings: UserSettingsStore
@@ -75,7 +75,7 @@ struct TabButton: View {
struct TabBar: View {
@Binding var new_events: NewEventsBits
@Binding var selected: Timeline?
@Binding var selected: Timeline
let settings: UserSettingsStore
let action: (Timeline) -> ()