From 23c3f18fa8cd5a6d2564cc47c1a2acdf0006acc7 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sat, 15 Mar 2025 16:52:55 +0100 Subject: [PATCH] sidebar: collapsed calendar: make todo count update properly --- .config/ags/modules/sideright/calendar.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/ags/modules/sideright/calendar.js b/.config/ags/modules/sideright/calendar.js index 0c7221fd..e68761ee 100644 --- a/.config/ags/modules/sideright/calendar.js +++ b/.config/ags/modules/sideright/calendar.js @@ -233,9 +233,9 @@ export const ModuleCalendar = () => { vpack: 'center', className: 'txt txt-small sidebar-calendar-collapsed-pill', label: `${Todo.todo_json.length} ${getString('To do tasks')}`, - setup: self => self.hook(Todo, (self) => { + setup: (self) => self.hook(Todo, (self) => { self.label = `${Todo.todo_json.length} ${getString('To do tasks')}` - }) + }, 'updated') }), ] })