From c2d2bb694beb78cb6a296f281dfec188b6650ae1 Mon Sep 17 00:00:00 2001 From: Ming Ming Date: Sat, 17 Jul 2021 23:40:13 +0800 Subject: [PATCH] Fix adding photos to album from photos page --- lib/widget/new_album_dialog.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/widget/new_album_dialog.dart b/lib/widget/new_album_dialog.dart index 1034a777..7c22cbc7 100644 --- a/lib/widget/new_album_dialog.dart +++ b/lib/widget/new_album_dialog.dart @@ -106,7 +106,8 @@ class _NewAlbumDialogState extends State { void _onOkPressed(BuildContext context) { if (_formKey.currentState.validate()) { _formKey.currentState.save(); - if (_formValue.provider == _Provider.static) { + if (_formValue.provider == _Provider.static || + _formValue.provider == null) { _onConfirmStaticAlbum(); } else { _onConfirmDirAlbum();