mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-07-01 04:51:59 +08:00
feat: 新增 Hosts 写入功能,通过预设的干净 DNS 获取ip 并 写入 hosts 文件
This commit is contained in:
@ -8,7 +8,7 @@ extension AsyncError on Future {
|
||||
return await this;
|
||||
} catch (e) {
|
||||
dPrint("unwrap error:$e");
|
||||
if (context != null) {
|
||||
if (context != null && context.mounted) {
|
||||
showToast(context, "出现错误: $e");
|
||||
}
|
||||
return null;
|
||||
|
Reference in New Issue
Block a user