Compare commits

..

1 Commits

Author SHA1 Message Date
Yaros
82cab7b81d fix(mobile): closing editor goes back to main page 2025-10-04 19:36:05 +02:00
2 changed files with 2 additions and 2 deletions

View File

@@ -300,7 +300,7 @@ class _EditAlbumDialogState extends ConsumerState<_EditAlbumDialog> {
await ref await ref
.read(remoteAlbumProvider.notifier) .read(remoteAlbumProvider.notifier)
.updateAlbum(widget.album.id, name: newTitle, description: newDescription); .updateAlbum(widget.album.id, name: newTitle, description: newDescription.isEmpty ? null : newDescription);
if (mounted) { if (mounted) {
Navigator.of( Navigator.of(

View File

@@ -91,7 +91,7 @@ class DriftEditImagePage extends ConsumerWidget {
backgroundColor: context.scaffoldBackgroundColor, backgroundColor: context.scaffoldBackgroundColor,
leading: IconButton( leading: IconButton(
icon: Icon(Icons.close_rounded, color: context.primaryColor, size: 24), icon: Icon(Icons.close_rounded, color: context.primaryColor, size: 24),
onPressed: () => context.navigator.popUntil((route) => route.isFirst), onPressed: () => context.navigator.pop(),
), ),
actions: <Widget>[ actions: <Widget>[
TextButton( TextButton(