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
8484 }
8585
8686 public bool LoadTagsList
87- => SelectedItem ? . HasTags ?? false &&
87+ => SelectedItem ? . HasTags ?? false &&
8888 PreviewPaneState is PreviewPaneStates . NoPreviewAvailable ||
8989 PreviewPaneState is PreviewPaneStates . PreviewAndDetailsAvailable ;
9090
@@ -289,8 +289,14 @@ public async Task UpdateSelectedItemPreviewAsync(bool downloadItem = false)
289289 try
290290 {
291291 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 ( ) ;
294300 }
295301 catch ( Exception e )
296302 {
@@ -347,7 +353,8 @@ public async Task UpdateSelectedItemPreviewAsync(bool downloadItem = false)
347353
348354 public void UpdateDateDisplay ( )
349355 {
350- SelectedItem ? . FileDetails ? . ForEach ( property => {
356+ SelectedItem ? . FileDetails ? . ForEach ( property =>
357+ {
351358 if ( property . Value is DateTimeOffset )
352359 property . UpdateValueText ( ) ;
353360 } ) ;
You can’t perform that action at this time.
0 commit comments