Fixing translate plugin; attempted dispose call

This commit is contained in:
2024-03-11 22:28:42 -05:00
parent d65ea8dec8
commit 02c31719d1
2 changed files with 8 additions and 4 deletions

View File

@@ -75,7 +75,11 @@ class IconGridWidget(Gtk.IconView):
return self.get_model()
def clear_and_set_new_store(self):
store = self.get_model()
if store:
store.run_dispose()
self.set_model(None)
store = Gtk.ListStore(GdkPixbuf.Pixbuf or GdkPixbuf.PixbufAnimation or None, str or None)
# store = Gtk.ListStore(Gtk.DirectoryList)
self.set_model(store)
self.set_model(store)