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",
"strings" : {
"" : {
},
"@%@" : {
"localizations" : {
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "@%@"
}
}
}
},
"#%@" : {
"localizations" : {
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "#%@"
}
}
}
},
"%@" : {
"localizations" : {
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "%@"
}
}
}
},
"%lld" : {
},
"•" : {
"localizations" : {
"fr" : {
"stringUnit" : {
"state" : "translated",
"value" : "%lld"
}
}
}
},
"about" : {
"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" : {
"localizations" : {
"en" : {
@ -3644,4 +3682,4 @@
}
},
"version" : "1.0"
}
}

View File

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