Fixed webp
This commit is contained in:
parent
2603aca8c1
commit
e5e83b6cd2
|
@ -86,6 +86,7 @@ class ImageView(ImageViewMixin, Gtk.Image):
|
||||||
if not self.work_pixbuff:
|
if not self.work_pixbuff:
|
||||||
self.set_as_static(path)
|
self.set_as_static(path)
|
||||||
|
|
||||||
|
self.pixbuff = self.work_pixbuff
|
||||||
if self.fit_to_win:
|
if self.fit_to_win:
|
||||||
self._fit_to_container()
|
self._fit_to_container()
|
||||||
|
|
||||||
|
@ -104,8 +105,6 @@ class ImageView(ImageViewMixin, Gtk.Image):
|
||||||
except Exception:
|
except Exception:
|
||||||
self.work_pixbuff = Gtk.Image.new_from_resource(path).get_pixbuf()
|
self.work_pixbuff = Gtk.Image.new_from_resource(path).get_pixbuf()
|
||||||
|
|
||||||
self.pixbuff = self.work_pixbuff
|
|
||||||
|
|
||||||
def set_as_webp(self, path):
|
def set_as_webp(self, path):
|
||||||
w = settings.get_thumbnail_with()
|
w = settings.get_thumbnail_with()
|
||||||
h = settings.get_thumbnail_height()
|
h = settings.get_thumbnail_height()
|
||||||
|
|
Loading…
Reference in New Issue