feature<CommitViewer>: add image formats that WPF supported

This commit is contained in:
leo 2021-01-27 11:48:01 +08:00
parent efa42af08d
commit 14f303038e

View file

@ -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) {