Set accounts as default

This commit is contained in:
Lumaa 2024-06-23 17:48:40 +02:00
parent a086b24883
commit 82c76361fa
2 changed files with 55 additions and 11 deletions

View File

@ -1,23 +1,45 @@
{ {
"sourceLanguage" : "en", "sourceLanguage" : "en",
"strings" : { "strings" : {
"" : {
},
"@%@" : { "@%@" : {
"localizations" : {
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "@%@"
}
}
}
}, },
"#%@" : { "#%@" : {
"localizations" : {
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "#%@"
}
}
}
}, },
"%@" : { "%@" : {
"localizations" : {
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@"
}
}
}
}, },
"%lld" : { "%lld" : {
"localizations" : {
}, "fr" : {
"•" : { "stringUnit" : {
"state" : "translated",
"value" : "%lld"
}
}
}
}, },
"about" : { "about" : {
"localizations" : { "localizations" : {
@ -1866,6 +1888,22 @@
} }
} }
}, },
"settings.account-switcher.default" : {
"localizations" : {
"en" : {
"stringUnit" : {
"state" : "translated",
"value" : "Set as default"
}
},
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "Mettre en compte par défaut"
}
}
}
},
"settings.account-switcher.log" : { "settings.account-switcher.log" : {
"localizations" : { "localizations" : {
"en" : { "en" : {
@ -3644,4 +3682,4 @@
} }
}, },
"version" : "1.0" "version" : "1.0"
} }

View File

@ -225,6 +225,12 @@ extension SettingsView {
} }
} }
.contextMenu { .contextMenu {
Button {
app.saveAsCurrent()
} label: {
Label("settings.account-switcher.default", systemImage: "person.crop.circle.dashed")
}
if !currentAccount { if !currentAccount {
Button(role: .destructive) { Button(role: .destructive) {
modelContext.delete(self.logged) modelContext.delete(self.logged)