Fix Hang on MacOS on close when synching

This commit is contained in:
Hanh 2023-03-02 14:42:03 +10:00
parent c6c5556688
commit 02ff9a9efb
3 changed files with 7 additions and 2 deletions

View File

@ -199,6 +199,11 @@ class OnWindow extends WindowListener {
prefs.setDouble('width', s.width);
prefs.setDouble('height', s.height);
}
@override
void onWindowClose() async {
WarpApi.cancelSync();
}
}
void main() async {

@ -1 +1 @@
Subproject commit 078af89cae4d5e8a229aabb2bfa934e73e257094
Subproject commit 1a2dbc991fe877783aa7ef3c38ab323a0d220aa5

View File

@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.3.4+387
version: 1.3.4+388
environment:
sdk: ">=2.12.0 <3.0.0"