@@ -128,11 +128,11 @@ public static async Task DecompressArchiveAsync(IShellPage associatedInstance)
128
128
if ( associatedInstance == null )
129
129
return ;
130
130
131
- BaseStorageFile archive = await StorageHelpers . ToStorageItem < BaseStorageFile > ( associatedInstance . SlimContentPage . SelectedItems . Count != 0
132
- ? associatedInstance . SlimContentPage . SelectedItem . ItemPath
133
- : associatedInstance . FilesystemViewModel . WorkingDirectory ) ;
131
+ BaseStorageFile archive = await StorageHelpers . ToStorageItem < BaseStorageFile > ( associatedInstance . SlimContentPage ? . SelectedItems ? . Count is null or 0
132
+ ? associatedInstance . FilesystemViewModel . WorkingDirectory
133
+ : associatedInstance . SlimContentPage . SelectedItem . ItemPath ) ;
134
134
135
- if ( archive is null )
135
+ if ( archive ? . Path is null )
136
136
return ;
137
137
138
138
var isArchiveEncrypted = await FilesystemTasks . Wrap ( ( ) => DecompressHelper . IsArchiveEncrypted ( archive ) ) ;
@@ -177,7 +177,7 @@ public static async Task DecompressArchiveAsync(IShellPage associatedInstance)
177
177
178
178
public static async Task DecompressArchiveHereAsync ( IShellPage associatedInstance )
179
179
{
180
- if ( associatedInstance ? . SlimContentPage == null )
180
+ if ( associatedInstance ? . SlimContentPage ? . SelectedItems == null )
181
181
return ;
182
182
183
183
foreach ( var selectedItem in associatedInstance . SlimContentPage . SelectedItems )
@@ -186,7 +186,7 @@ public static async Task DecompressArchiveHereAsync(IShellPage associatedInstanc
186
186
BaseStorageFile archive = await StorageHelpers . ToStorageItem < BaseStorageFile > ( selectedItem . ItemPath ) ;
187
187
BaseStorageFolder currentFolder = await StorageHelpers . ToStorageItem < BaseStorageFolder > ( associatedInstance . FilesystemViewModel . CurrentFolder . ItemPath ) ;
188
188
189
- if ( archive is null )
189
+ if ( archive ? . Path is null )
190
190
return ;
191
191
192
192
if ( await FilesystemTasks . Wrap ( ( ) => IsArchiveEncrypted ( archive ) ) )
@@ -216,7 +216,7 @@ public static async Task DecompressArchiveHereAsync(IShellPage associatedInstanc
216
216
217
217
public static async Task DecompressArchiveToChildFolderAsync ( IShellPage associatedInstance )
218
218
{
219
- if ( associatedInstance ? . SlimContentPage == null )
219
+ if ( associatedInstance ? . SlimContentPage ? . SelectedItems == null )
220
220
return ;
221
221
222
222
foreach ( var selectedItem in associatedInstance . SlimContentPage . SelectedItems )
@@ -227,7 +227,7 @@ public static async Task DecompressArchiveToChildFolderAsync(IShellPage associat
227
227
BaseStorageFolder currentFolder = await StorageHelpers . ToStorageItem < BaseStorageFolder > ( associatedInstance . FilesystemViewModel . CurrentFolder . ItemPath ) ;
228
228
BaseStorageFolder destinationFolder = null ;
229
229
230
- if ( archive is null )
230
+ if ( archive ? . Path is null )
231
231
return ;
232
232
233
233
if ( await FilesystemTasks . Wrap ( ( ) => DecompressHelper . IsArchiveEncrypted ( archive ) ) )
0 commit comments