π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
cancel debouncers on disposing widget
ashilkn8b39716f5caa
diff --git a/lib/ui/collections/device/device_folders_grid_view.dart b/lib/ui/collections/device/device_folders_grid_view.dartindex cbc9e3b2f7..cd3ee47dc6 100644--- a/lib/ui/collections/device/device_folders_grid_view.dart+++ b/lib/ui/collections/device/device_folders_grid_view.dart@@ -102,6 +102,7 @@ class _DeviceFoldersGridViewState extends State<DeviceFoldersGridView> {void dispose() {_backupFoldersUpdatedEvent?.cancel();_localFilesSubscription?.cancel();+ _debouncer.cancelDebounce();super.dispose();}}diff --git a/lib/ui/collections/device/device_folders_vertical_grid_view.dart b/lib/ui/collections/device/device_folders_vertical_grid_view.dartindex 3844d14fb5..7b417c3d63 100644--- a/lib/ui/collections/device/device_folders_vertical_grid_view.dart+++ b/lib/ui/collections/device/device_folders_vertical_grid_view.dart@@ -158,6 +158,7 @@ class _DeviceFolderVerticalGridViewBodyStatevoid dispose() {_backupFoldersUpdatedEvent?.cancel();_localFilesSubscription?.cancel();+ _debouncer.cancelDebounce();super.dispose();}}diff --git a/lib/ui/tabs/shared_collections_tab.dart b/lib/ui/tabs/shared_collections_tab.dartindex 5ec1829634..d937fa7161 100644--- a/lib/ui/tabs/shared_collections_tab.dart+++ b/lib/ui/tabs/shared_collections_tab.dart@@ -276,6 +276,7 @@ class _SharedCollectionsTabState extends State<SharedCollectionsTab>_localFilesSubscription.cancel();_collectionUpdatesSubscription.cancel();_loggedOutEvent.cancel();+ _debouncer.cancelDebounce();super.dispose();}diff --git a/lib/ui/tabs/user_collections_tab.dart b/lib/ui/tabs/user_collections_tab.dartindex 22f6f486bd..e5eab83178 100644--- a/lib/ui/tabs/user_collections_tab.dart+++ b/lib/ui/tabs/user_collections_tab.dart@@ -281,6 +281,7 @@ class _UserCollectionsTabState extends State<UserCollectionsTab>_collectionUpdatesSubscription.cancel();_loggedOutEvent.cancel();_scrollController.dispose();+ _debouncer.cancelDebounce();super.dispose();}diff --git a/lib/ui/viewer/gallery/gallery.dart b/lib/ui/viewer/gallery/gallery.dartindex 51957f4424..8e3cfa4d07 100644--- a/lib/ui/viewer/gallery/gallery.dart+++ b/lib/ui/viewer/gallery/gallery.dart@@ -233,6 +233,7 @@ class GalleryState extends State<Gallery> {for (final subscription in _forceReloadEventSubscriptions) {subscription.cancel();}+ _debouncer.cancelDebounce();super.dispose();}