浏览代码

Fire even for backup folder updated

Neeraj Gupta 3 年之前
父节点
当前提交
29bbd94056
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      lib/ui/share_collection_widget.dart

+ 3 - 0
lib/ui/share_collection_widget.dart

@@ -7,7 +7,9 @@ import 'package:flutter_typeahead/flutter_typeahead.dart';
 import 'package:fluttercontactpicker/fluttercontactpicker.dart';
 import 'package:logging/logging.dart';
 import 'package:photos/core/configuration.dart';
+import 'package:photos/core/event_bus.dart';
 import 'package:photos/db/public_keys_db.dart';
+import 'package:photos/events/backup_folders_updated_event.dart';
 import 'package:photos/models/collection.dart';
 import 'package:photos/models/public_key.dart';
 import 'package:photos/services/collections_service.dart';
@@ -151,6 +153,7 @@ class _SharingDialogState extends State<SharingDialog> {
                           .contains(path)) {
                         await Configuration.instance
                             .addPathToFoldersToBeBackedUp(path);
+                        Bus.instance.fire(BackupFoldersUpdatedEvent());
                       }
                     }
                   }