diff --git a/lib/home.dart b/lib/home.dart index 604da7a..bb09821 100644 --- a/lib/home.dart +++ b/lib/home.dart @@ -48,12 +48,13 @@ class _HomeState extends State with WindowListener { } else { await windowManager.minimize(); } + setState(() { + isWebviewHidden= true; + }); } else { await windowManager.hide(); } - setState(() { - isWebviewHidden= true; - }); + } @override diff --git a/pubspec.yaml b/pubspec.yaml index e14fd91..483e92d 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.24.1-beat.4 +version: 1.25.0-beat.1 environment: sdk: '>=3.0.6 <4.0.0' diff --git a/scripts/init.dart b/scripts/init.dart index d842dc7..dbc7255 100644 --- a/scripts/init.dart +++ b/scripts/init.dart @@ -13,7 +13,7 @@ final assetsPath = final binDir = Directory(path.join(assetsPath, 'bin')); const rawCoreName = 'itun2socks'; -const rawCoreVersion = '1.22.2'; +const rawCoreVersion = '1.22.3'; Future downloadLatestCore(String arch, String token) async { final dio = Dio();