mirror of
https://github.com/sourcegit-scm/sourcegit.git
synced 2024-12-24 20:57:19 -08:00
feature<CommitViewer>: add image formats that WPF supported
This commit is contained in:
parent
efa42af08d
commit
14f303038e
1 changed files with 7 additions and 1 deletions
|
@ -477,7 +477,13 @@ namespace SourceGit.UI {
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool IsImage(string path) {
|
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) {
|
private void OnPreviewContextMenuOpening(object sender, ContextMenuEventArgs e) {
|
||||||
|
|
Loading…
Reference in a new issue