From c2662b8325842dc3a99f169e27e63ee13f486c98 Mon Sep 17 00:00:00 2001 From: tom Date: Fri, 2 Feb 2024 13:44:37 +0000 Subject: [PATCH] - Fix local file images --- src/NoteView.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/NoteView.py b/src/NoteView.py index aa82e23..473d2f1 100644 --- a/src/NoteView.py +++ b/src/NoteView.py @@ -187,7 +187,7 @@ def __init__(self, data, config, ai_config, read_only): self.container.append(self.main) case "image": - if config["image"]: self.main = Image(self.data, read_only) + if config["image"]: self.main = Image(self.data) self.container.append(self.main) case "list": @@ -281,10 +281,10 @@ def save(self): class Image(Gtk.Box): - def __init__(self, data, read_only): + def __init__(self, data): super().__init__() + self.data = data if data["source"] == "url": - self.data = data self.main = Gtk.Spinner(hexpand=True) self.append(self.main) self.main.start()