mirror of
https://github.com/yattee/yattee.git
synced 2026-11-01 09:27:18 +00:00
Label the local context by where its data actually lives
"Yattee (iCloud)" was hardcoded for the local data context even with iCloud sync disabled, when the data is purely on-device. The name now comes from DataContextValidator.localContextName, which checks iCloudSyncEnabled and falls back to "Yattee (This Device)".
This commit is contained in:
@@ -99,7 +99,7 @@ enum DataContextSwitcherLabels {
|
||||
/// The context's name, plus whatever the user needs to tell it apart.
|
||||
@MainActor
|
||||
static func title(for context: DataContext, in appEnvironment: AppEnvironment?) -> String {
|
||||
guard let appEnvironment else { return String(localized: "subscriptions.account.local") }
|
||||
guard let appEnvironment else { return String(localized: "subscriptions.account.local.device") }
|
||||
|
||||
return title(
|
||||
for: context,
|
||||
|
||||
Reference in New Issue
Block a user