Do not disable image diff tools

https://gitlab.gnome.org/GNOME/gitg/-/issues/372
This commit is contained in:
Sonny Piers 2022-04-24 17:03:15 +02:00 committed by Alberto Fanjul
parent 6a6ca91592
commit da0e21aa13

View File

@ -61,9 +61,7 @@ class Gitg.DiffViewFileRendererImage : Gtk.Grid, DiffViewFileRenderer
d_diff_image_overlay.cache = d_cache;
d_diff_image_difference.cache = d_cache;
if (d_cache.old_pixbuf == null || d_cache.new_pixbuf == null ||
d_cache.old_pixbuf.get_width() != d_cache.new_pixbuf.get_width() ||
d_cache.old_pixbuf.get_height() != d_cache.new_pixbuf.get_height())
if (d_cache.old_pixbuf == null || d_cache.new_pixbuf == null)
{
d_stack_switcher.sensitive = false;
}