尝试使用mac的指纹识别来授权,但是似乎没有效果

This commit is contained in:
2026-07-09 11:27:40 +08:00
parent b52db70015
commit 9b1cb668b1
9 changed files with 441 additions and 6 deletions
+6
View File
@@ -98,6 +98,9 @@ func Run() {
log.L().Error("init i18n", "error", err)
}
// Set the localized Touch ID prompt for keychain access (macOS).
setTouchIDPromptFromI18n()
a := &App{
fyneApp: app.NewWithID(paths.BundleID),
db: store,
@@ -358,6 +361,9 @@ func (a *App) changeLanguage(lang string) {
// Switch the active localizer.
i18n.SetLanguage(lang)
// Update the Touch ID prompt text for the new language.
setTouchIDPromptFromI18n()
// Rebuild everything that holds cached strings.
a.rebuildUI()
}