scaling picons on loading

This commit is contained in:
DYefremov
2020-05-12 20:44:37 +03:00
parent 38f6c06292
commit 16167b1b13

View File

@@ -142,6 +142,9 @@ class PiconsDialog:
def update_picons(self, path):
p_model = self._picons_view.get_model()
if not p_model:
return
model = get_base_model(p_model)
self._picons_view.set_model(None)
factor = self._app.DEL_FACTOR
@@ -156,7 +159,7 @@ class PiconsDialog:
return
try:
p = GdkPixbuf.Pixbuf.new_from_file(filename="{}/{}".format(path, file))
p = GdkPixbuf.Pixbuf.new_from_file_at_scale("{}/{}".format(path, file), 100, 60, True)
except GLib.GError as e:
pass
else: