Skip to content

Commit

Permalink
Fix: calendar live update on tab change
Browse files Browse the repository at this point in the history
  • Loading branch information
szczyglis-dev committed Feb 2, 2025
1 parent 9eaad86 commit e5aeadd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pygpt_net/controller/ui/tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ def on_tab_changed(
elif tab.type == Tab.TAB_TOOL_PAINTER:
if self.window.core.config.get('vision.capture.enabled'):
self.window.controller.camera.enable_capture()
elif tab.type == Tab.TAB_TOOL_CALENDAR:
self.window.controller.calendar.update()
self.window.controller.calendar.update_ctx_counters()

if prev_tab != idx or prev_column != column_idx:
self.window.dispatch(AppEvent(AppEvent.TAB_SELECTED)) # app event
Expand Down

0 comments on commit e5aeadd

Please sign in to comment.