Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/Files.App/Helpers/Navigation/NavigationHelpers.cs
Original file line number Diff line number Diff line change
Expand Up @@ -759,6 +759,24 @@ private static async Task<FilesystemResult> OpenFile(string path, IShellPage ass
if (!launchSuccess)
await Win32Helper.InvokeWin32ComponentAsync(path, associatedInstance, args);
}
else if (childFile.Item is ZipStorageFile zipStorageFile)
{
var options = InitializeWithWindow(new LauncherOptions());
var storageItem = (StorageFile)await FilesystemTasks.Wrap(() => zipStorageFile.ToStorageFileAsync().AsTask());
if (storageItem is null)
{
await Win32Helper.InvokeWin32ComponentAsync(path, associatedInstance, args);
}
else if (!await Launcher.LaunchFileAsync(storageItem, options))
{
var pickerOptions = InitializeWithWindow(new LauncherOptions
{
DisplayApplicationPicker = true
});
if (!await Launcher.LaunchFileAsync(storageItem, pickerOptions))
await Win32Helper.InvokeWin32ComponentAsync(path, associatedInstance, args);
}
}
else
{
await Win32Helper.InvokeWin32ComponentAsync(path, associatedInstance, args);
Expand Down