mirror of
https://github.com/microsoft/PowerToys.git
synced 2025-12-16 11:48:06 +01:00
[Peek]Also open webp/webm files in image/video previewer(#31621)
This commit is contained in:
committed by
GitHub
parent
d34e26975c
commit
efe88a2f41
@@ -346,6 +346,7 @@ namespace Peek.FilePreviewer.Previewers
|
|||||||
".wdp",
|
".wdp",
|
||||||
".ico", // NEED TO TEST
|
".ico", // NEED TO TEST
|
||||||
".thumb", // NEED TO TEST
|
".thumb", // NEED TO TEST
|
||||||
|
".webp",
|
||||||
|
|
||||||
// Raw types
|
// Raw types
|
||||||
".arw",
|
".arw",
|
||||||
|
|||||||
@@ -4,11 +4,9 @@
|
|||||||
|
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using CommunityToolkit.Mvvm.ComponentModel;
|
using CommunityToolkit.Mvvm.ComponentModel;
|
||||||
using Microsoft.PowerToys.Settings.UI.Library;
|
|
||||||
using Microsoft.UI.Dispatching;
|
using Microsoft.UI.Dispatching;
|
||||||
using Peek.Common.Extensions;
|
using Peek.Common.Extensions;
|
||||||
using Peek.Common.Helpers;
|
using Peek.Common.Helpers;
|
||||||
@@ -116,7 +114,7 @@ namespace Peek.FilePreviewer.Previewers
|
|||||||
private static readonly HashSet<string> _supportedFileTypes = new()
|
private static readonly HashSet<string> _supportedFileTypes = new()
|
||||||
{
|
{
|
||||||
".mp4", ".3g2", ".3gp", ".3gp2", ".3gpp", ".asf", ".avi", ".m2t", ".m2ts",
|
".mp4", ".3g2", ".3gp", ".3gp2", ".3gpp", ".asf", ".avi", ".m2t", ".m2ts",
|
||||||
".m4v", ".mkv", ".mov", ".mp4", ".mp4v", ".mts", ".wm", ".wmv",
|
".m4v", ".mkv", ".mov", ".mp4", ".mp4v", ".mts", ".wm", ".wmv", ".webm",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user