diff --git a/Shared/Settings/Help.swift b/Shared/Settings/Help.swift index 4f85a311..9652ba14 100644 --- a/Shared/Settings/Help.swift +++ b/Shared/Settings/Help.swift @@ -7,7 +7,6 @@ struct Help: View { static let discordURL = URL(string: "https://yattee.stream/discord")! static let issuesURL = URL(string: "https://github.com/yattee/yattee/issues")! static let milestonesURL = URL(string: "https://github.com/yattee/yattee/milestones")! - static let donationsURL = URL(string: "https://github.com/yattee/yattee/wiki/Donations")! static let contributingURL = URL(string: "https://github.com/yattee/yattee/wiki/Contributing")! static let translationsURL = URL(string: "https://hosted.weblate.org/engage/yattee/")! @@ -69,7 +68,6 @@ struct Help: View { .padding(.bottom, 8) VStack(alignment: .leading, spacing: 8) { - helpItemLink("Donations".localized(), url: Self.donationsURL, systemImage: "dollarsign.circle") helpItemLink("Contributing".localized(), url: Self.contributingURL, systemImage: "hammer") helpItemLink("Translations".localized(), url: Self.translationsURL, systemImage: "flag") } diff --git a/macOS/InstancesSettings.swift b/macOS/InstancesSettings.swift index 65d6ec76..ffb89193 100644 --- a/macOS/InstancesSettings.swift +++ b/macOS/InstancesSettings.swift @@ -35,7 +35,7 @@ struct InstancesSettings: View { Spacer() } - if !selectedInstance.isNil, selectedInstance.app.supportsAccounts { + if !selectedInstance.isNil, selectedInstance.app.supportsAccounts, !accounts.isDemo { SettingsHeader(text: "Accounts".localized()) let list = List(selection: $selectedAccount) { @@ -114,11 +114,13 @@ struct InstancesSettings: View { if selectedInstance != nil { HStack { - Button("Add Account...") { - selectedAccount = nil - presentingAccountForm = true + if !accounts.isDemo { + Button("Add Account...") { + selectedAccount = nil + presentingAccountForm = true + } + .disabled(!selectedInstance.app.supportsAccounts) } - .disabled(!selectedInstance.app.supportsAccounts) Spacer()