mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 04:04:07 +00:00
Fix removing instance
This commit is contained in:
@@ -13,11 +13,14 @@ struct SettingsView: View {
|
||||
@Environment(\.dismiss) private var dismiss
|
||||
#endif
|
||||
|
||||
@EnvironmentObject<AccountsModel> private var accounts
|
||||
|
||||
var body: some View {
|
||||
#if os(macOS)
|
||||
TabView {
|
||||
Form {
|
||||
InstancesSettings()
|
||||
.environmentObject(accounts)
|
||||
}
|
||||
.tabItem {
|
||||
Label("Instances", systemImage: "server.rack")
|
||||
@@ -63,6 +66,7 @@ struct SettingsView: View {
|
||||
}
|
||||
#endif
|
||||
InstancesSettings()
|
||||
.environmentObject(accounts)
|
||||
BrowsingSettings()
|
||||
PlaybackSettings()
|
||||
ServicesSettings()
|
||||
|
@@ -54,7 +54,6 @@ struct VerticalCells: View {
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
var scrollViewShowsIndicators: Bool {
|
||||
#if !os(tvOS)
|
||||
true
|
||||
|
@@ -26,6 +26,7 @@ struct YatteeApp: App {
|
||||
#if os(macOS)
|
||||
Settings {
|
||||
SettingsView()
|
||||
.environmentObject(AccountsModel())
|
||||
.environmentObject(InstancesModel())
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user