From 14f303038ec66e40565edf5f0c70effc5d3991a8 Mon Sep 17 00:00:00 2001 From: leo Date: Wed, 27 Jan 2021 11:48:01 +0800 Subject: [PATCH] feature: add image formats that WPF supported --- src/UI/CommitViewer.xaml.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/UI/CommitViewer.xaml.cs b/src/UI/CommitViewer.xaml.cs index 3659adb9..5fadc7d0 100644 --- a/src/UI/CommitViewer.xaml.cs +++ b/src/UI/CommitViewer.xaml.cs @@ -477,7 +477,13 @@ namespace SourceGit.UI { } private bool IsImage(string path) { - return path.EndsWith(".png") || path.EndsWith(".jpg") || path.EndsWith(".jpeg") || path.EndsWith(".ico") || path.EndsWith(".bmp") || path.EndsWith(".svg"); + return path.EndsWith(".png") || + path.EndsWith(".jpg") || + path.EndsWith(".jpeg") || + path.EndsWith(".ico") || + path.EndsWith(".bmp") || + path.EndsWith(".tiff") || + path.EndsWith(".gif"); } private void OnPreviewContextMenuOpening(object sender, ContextMenuEventArgs e) {