File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed
src/Files.App/ViewModels/UserControls Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ public UIElement PreviewPaneContent
84
84
}
85
85
86
86
public bool LoadTagsList
87
- => SelectedItem ? . HasTags ?? false &&
87
+ => SelectedItem ? . HasTags ?? false &&
88
88
PreviewPaneState is PreviewPaneStates . NoPreviewAvailable ||
89
89
PreviewPaneState is PreviewPaneStates . PreviewAndDetailsAvailable ;
90
90
@@ -289,8 +289,14 @@ public async Task UpdateSelectedItemPreviewAsync(bool downloadItem = false)
289
289
try
290
290
{
291
291
PreviewPaneState = PreviewPaneStates . LoadingPreview ;
292
- loadCancellationTokenSource = new CancellationTokenSource ( ) ;
293
- await LoadPreviewControlAsync ( loadCancellationTokenSource . Token , downloadItem ) ;
292
+
293
+ if ( previewSettingsService . ShowPreviewOnly )
294
+ {
295
+ loadCancellationTokenSource = new CancellationTokenSource ( ) ;
296
+ await LoadPreviewControlAsync ( loadCancellationTokenSource . Token , downloadItem ) ;
297
+ }
298
+ else
299
+ await LoadBasicPreviewAsync ( ) ;
294
300
}
295
301
catch ( Exception e )
296
302
{
@@ -347,7 +353,8 @@ public async Task UpdateSelectedItemPreviewAsync(bool downloadItem = false)
347
353
348
354
public void UpdateDateDisplay ( )
349
355
{
350
- SelectedItem ? . FileDetails ? . ForEach ( property => {
356
+ SelectedItem ? . FileDetails ? . ForEach ( property =>
357
+ {
351
358
if ( property . Value is DateTimeOffset )
352
359
property . UpdateValueText ( ) ;
353
360
} ) ;
You can’t perform that action at this time.
0 commit comments