From cf3c95d1d870ebf333e4a33d23602573387bf3ae Mon Sep 17 00:00:00 2001 From: Nutcake Date: Wed, 1 Nov 2023 15:22:58 +0100 Subject: [PATCH] Fix inventory viewer always downloading thumbnail despite selection Closes #13 --- lib/widgets/inventory/inventory_browser_app_bar.dart | 2 +- pubspec.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/widgets/inventory/inventory_browser_app_bar.dart b/lib/widgets/inventory/inventory_browser_app_bar.dart index b728201..040b545 100644 --- a/lib/widgets/inventory/inventory_browser_app_bar.dart +++ b/lib/widgets/inventory/inventory_browser_app_bar.dart @@ -248,7 +248,7 @@ class _InventoryBrowserAppBarState extends State { return; } for (var record in selectedRecords) { - final uri = selectedUris == thumbUris ? record.thumbnailUri : record.thumbnailUri; + final uri = selectedUris == thumbUris ? record.thumbnailUri : record.assetUri; await FlutterDownloader.enqueue( url: Aux.resdbToHttp(uri), savedDir: directory, diff --git a/pubspec.yaml b/pubspec.yaml index 2a1c52f..579c65a 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 0.10.2-beta+1 +version: 0.10.3-beta+1 environment: sdk: '>=3.0.1'