fixed showing undecodable trashed item as missing from storage
This commit is contained in:
parent
4c6c56e3f8
commit
2d5de662ff
2 changed files with 4 additions and 2 deletions
|
@ -32,7 +32,8 @@ class _ErrorThumbnailState extends State<ErrorThumbnail> {
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
_exists = entry.path != null ? File(entry.path!).exists() : SynchronousFuture(true);
|
final path = entry.trashDetails?.path ?? entry.path;
|
||||||
|
_exists = path != null ? File(path).exists() : SynchronousFuture(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
|
@ -29,7 +29,8 @@ class _ErrorViewState extends State<ErrorView> {
|
||||||
@override
|
@override
|
||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
_exists = entry.path != null ? File(entry.path!).exists() : SynchronousFuture(true);
|
final path = entry.trashDetails?.path ?? entry.path;
|
||||||
|
_exists = path != null ? File(path).exists() : SynchronousFuture(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
Loading…
Reference in a new issue