Skip to content

Commit

Permalink
- Fix local file images
Browse files Browse the repository at this point in the history
  • Loading branch information
Wemmy0 committed Feb 2, 2024
1 parent ecf2ff9 commit c2662b8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/NoteView.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit c2662b8

Please sign in to comment.