mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-23 07:43:42 +08:00
清理自动填充二次确认
This commit is contained in:
parent
a0a21dc8a6
commit
6dbf3f99f1
@ -22,11 +22,15 @@ class SettingUIModel extends BaseUIModel {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Future<void> onResetAutoLogin() async {
|
Future<void> onResetAutoLogin() async {
|
||||||
final userBox = await Hive.openBox("rsi_account_data");
|
final ok = await showConfirmDialogs(context!, "确认重置自动填充?",
|
||||||
await userBox.deleteFromDisk();
|
const Text("这将会删除本地的账号记录,或在下次启动游戏时将自动填充选择 ‘否’ 以禁用自动填充。"));
|
||||||
Win32Credentials.delete("SCToolbox_RSI_Account_secret");
|
if (ok) {
|
||||||
showToast(context!, "已清理自动填充数据");
|
final userBox = await Hive.openBox("rsi_account_data");
|
||||||
reloadData();
|
await userBox.deleteFromDisk();
|
||||||
|
Win32Credentials.delete("SCToolbox_RSI_Account_secret");
|
||||||
|
showToast(context!, "已清理自动填充数据");
|
||||||
|
reloadData();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future _updateAutoLoginAccount() async {
|
Future _updateAutoLoginAccount() async {
|
||||||
|
Loading…
Reference in New Issue
Block a user