Procházet zdrojové kódy

Change ForceReloadHomeGalleryEvent's message on changing collection visibility

ashilkn před 1 rokem
rodič
revize
88898096a4
1 změnil soubory, kde provedl 7 přidání a 2 odebrání
  1. 7 2
      lib/utils/magic_util.dart

+ 7 - 2
lib/utils/magic_util.dart

@@ -77,8 +77,13 @@ Future<void> changeCollectionVisibility(
       await CollectionsService.instance
           .updateShareeMagicMetadata(collection, update);
     }
-    // Force reload home gallery to pull in the now unarchived files
-    Bus.instance.fire(ForceReloadHomeGalleryEvent("CollectionArchiveChange"));
+    // Force reload home gallery to pull in/remove the now visibility changed
+    // files
+    Bus.instance.fire(
+      ForceReloadHomeGalleryEvent(
+        "CollectionVisibilityChange: $visibilityAction",
+      ),
+    );
     showShortToast(
       context,
       _visActionSuccessfulText(