Fix tab selection bugfix

This commit is contained in:
Arkadiusz Fal 2023-09-24 11:14:24 +02:00
parent e556dac871
commit e5f49fda5e

View File

@ -66,7 +66,7 @@ final class NavigationModel: ObservableObject {
@Published var tabSelection: TabSelection! { didSet { @Published var tabSelection: TabSelection! { didSet {
if oldValue == tabSelection { multipleTapHandler() } if oldValue == tabSelection { multipleTapHandler() }
if tabSelection == nil, let item = recents.presentedItem { if tabSelection == nil, let item = recents.presentedItem {
DispatchQueue.main.async { [weak self] in Delay.by(0.2) { [weak self] in
self?.tabSelection = .recentlyOpened(item.tag) self?.tabSelection = .recentlyOpened(item.tag)
} }
} }