Skip to content

Commit 33d2ee6

Browse files
I'm not sure this matters...
1 parent 7127726 commit 33d2ee6

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/rclone_decrypt/gui.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,10 @@ def emit(self, record):
4343
self.log_widget.value += "\n" + log_entry
4444
else:
4545
self.log_widget.value = log_entry
46-
self.log_widget.update()
46+
47+
# Only update if the widget is attached to a page
48+
if self.log_widget.page:
49+
self.log_widget.update()
4750

4851

4952
def start_gui(debug: bool = False):

0 commit comments

Comments
 (0)