Add "Startup section" setting

Fix #103
This commit is contained in:
Arkadiusz Fal
2023-05-25 17:01:53 +02:00
parent ae144ea82f
commit 59f48c739a
4 changed files with 56 additions and 34 deletions

View File

@@ -152,7 +152,8 @@ struct YatteeApp: App {
recents.clear()
}
var section = Defaults[.showHome] ? TabSelection.home : Defaults[.visibleSections].min()?.tabSelection
let startupSection = Defaults[.startupSection]
var section: TabSelection? = startupSection.tabSelection
#if os(macOS)
if section == .playlists {