From fbf23f5b609eeb1d41d1ba441623e30e67805999 Mon Sep 17 00:00:00 2001 From: DevilXD Date: Thu, 28 Jul 2022 08:53:45 +0200 Subject: [PATCH] Fix an issue with the inventory tab not updating live sometimes --- gui.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gui.py b/gui.py index a3ed426..3ab2246 100644 --- a/gui.py +++ b/gui.py @@ -924,7 +924,7 @@ class InventoryOverview: self._campaigns: list[DropsCampaign] = [] self._drops: dict[str, ttk.Label] = {} - def _canvas_update(self, event: tk.Event[tk.Canvas]): + def _canvas_update(self, event: tk.Event[tk.Canvas] | None = None): self._canvas.configure(scrollregion=self._canvas.bbox("all")) def _on_mousewheel(self, event: tk.Event[tk.Misc]): @@ -1001,6 +1001,7 @@ class InventoryOverview: drop_frame, text=progress_text, foreground=progress_color ) label.grid(column=0, row=1) + self._canvas_update() def clear(self) -> None: for child in self._main_frame.winfo_children():