mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 14:56:20 +01:00
Tweak logs
This commit is contained in:
parent
15d9d6edee
commit
e2152a7ebe
3 changed files with 7 additions and 3 deletions
|
@ -150,6 +150,7 @@ class _AlbumBrowserState extends State<AlbumBrowser>
|
|||
widget.account,
|
||||
newAlbum,
|
||||
).catchError((e, stackTrace) {
|
||||
_log.shout("[doneEditMode] Failed while UpdateAlbum", e, stackTrace);
|
||||
SnackBarManager().showSnackBar(SnackBar(
|
||||
content: Text(exception_util.toUserString(e)),
|
||||
duration: k.snackBarDurationNormal,
|
||||
|
|
|
@ -236,7 +236,7 @@ class _AlbumImporterState extends State<AlbumImporter> {
|
|||
coverProvider: AlbumAutoCoverProvider(),
|
||||
sortProvider: const AlbumTimeSortProvider(isAscending: false),
|
||||
);
|
||||
_log.info("[_onImportPressed] Creating dir album: $album");
|
||||
_log.info("[_createAllAlbums] Creating dir album: $album");
|
||||
|
||||
final items = await PopulateAlbum()(widget.account, album);
|
||||
final sortedFiles = items
|
||||
|
|
|
@ -136,8 +136,11 @@ class _DynamicAlbumBrowserState extends State<DynamicAlbumBrowser>
|
|||
setState(() {
|
||||
_album = newAlbum;
|
||||
});
|
||||
UpdateAlbum(albumRepo)(widget.account, newAlbum)
|
||||
.catchError((e, stacktrace) {
|
||||
UpdateAlbum(albumRepo)(
|
||||
widget.account,
|
||||
newAlbum,
|
||||
).catchError((e, stackTrace) {
|
||||
_log.shout("[doneEditMode] Failed while UpdateAlbum", e, stackTrace);
|
||||
SnackBarManager().showSnackBar(SnackBar(
|
||||
content: Text(exception_util.toUserString(e)),
|
||||
duration: k.snackBarDurationNormal,
|
||||
|
|
Loading…
Reference in a new issue