Revert "fix: windows保存图片改成打开官网,gal有兼容"
This reverts commit a5440aec53475f77d27ea992627923fcae9e6efd.
This commit is contained in:
parent
a5440aec53
commit
8e71e22e86
@ -13,19 +13,6 @@ class HIAntiLostController extends GetxController {
|
|||||||
final GlobalKey repaintKey = GlobalKey();
|
final GlobalKey repaintKey = GlobalKey();
|
||||||
|
|
||||||
Future<void> saveImage() async {
|
Future<void> saveImage() async {
|
||||||
if (Platform.isWindows) {
|
|
||||||
final Uri webUrl = Uri.parse('https://hifastvpn.com/');
|
|
||||||
try {
|
|
||||||
final ok =
|
|
||||||
await launchUrl(webUrl, mode: LaunchMode.externalApplication);
|
|
||||||
if (!ok) {
|
|
||||||
KRCommonUtil.kr_showToast("无法打开链接");
|
|
||||||
}
|
|
||||||
} catch (e) {
|
|
||||||
KRCommonUtil.kr_showToast("无法打开链接");
|
|
||||||
}
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
KRCommonUtil.kr_showLoading(message: "正在保存...");
|
KRCommonUtil.kr_showLoading(message: "正在保存...");
|
||||||
try {
|
try {
|
||||||
// Check permission
|
// Check permission
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user