fix: behavior
This commit is contained in:
@@ -589,9 +589,9 @@ class PreviewVideoStore {
|
||||
final allFiles = files
|
||||
.where((file) => previewIds?[file.uploadedFileID] == null)
|
||||
.sorted((a, b) {
|
||||
// put higher duration videos first
|
||||
final first = a.duration == null || a.duration! >= 20 * 60 * 60 ? 1 : 0;
|
||||
final second = b.duration == null || b.duration! >= 20 * 60 * 60 ? 1 : 0;
|
||||
// put higher duration videos last
|
||||
final first = a.duration == null || a.duration! >= 10 * 60 * 60 ? 1 : 0;
|
||||
final second = b.duration == null || b.duration! >= 10 * 60 * 60 ? 1 : 0;
|
||||
return first.compareTo(second);
|
||||
}).toList();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user