mirror of
https://fastgit.cc/github.com/sourcegit-scm/sourcegit
synced 2026-04-24 10:50:52 +08:00
feature<CommitViewer>: add image formats that WPF supported
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user