Fix an issue with the inventory tab not updating live sometimes
This commit is contained in:
1 parent
c3854937b9
commit
fbf23f5b60
1 file changed
+2
-1
@@ -924,7 +924,7 @@ class InventoryOverview:
|
|||||||
self._campaigns: list[DropsCampaign] = []
|
self._campaigns: list[DropsCampaign] = []
|
||||||
self._drops: dict[str, ttk.Label] = {}
|
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"))
|
self._canvas.configure(scrollregion=self._canvas.bbox("all"))
|
||||||
|
|
||||||
def _on_mousewheel(self, event: tk.Event[tk.Misc]):
|
def _on_mousewheel(self, event: tk.Event[tk.Misc]):
|
||||||
@@ -1001,6 +1001,7 @@ class InventoryOverview:
|
|||||||
drop_frame, text=progress_text, foreground=progress_color
|
drop_frame, text=progress_text, foreground=progress_color
|
||||||
)
|
)
|
||||||
label.grid(column=0, row=1)
|
label.grid(column=0, row=1)
|
||||||
|
self._canvas_update()
|
||||||
|
|
||||||
def clear(self) -> None:
|
def clear(self) -> None:
|
||||||
for child in self._main_frame.winfo_children():
|
for child in self._main_frame.winfo_children():
|
||||||
|
|||||||
Reference in new issue
Block a user