Skip to content

Commit f53ac59

Browse files
authored
add day detection (#2007)
1 parent b79cbef commit f53ac59

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Layouts/ItemBoard.vala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,10 @@ public class Layouts.ItemBoard : Layouts.ItemBase {
478478
item.update_pin (false);
479479
})] = hide_loading_button;
480480

481+
signals_map[Services.EventBus.get_default ().day_changed.connect (() => {
482+
update_due_label ();
483+
})] = Services.EventBus.get_default ();
484+
481485
signals_map[activate.connect (() => {
482486
open_detail ();
483487
})] = this;

src/Layouts/ItemRow.vala

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -919,6 +919,10 @@ public class Layouts.ItemRow : Layouts.ItemBase {
919919
}
920920
})] = Services.EventBus.get_default ();
921921

922+
signals_map[Services.EventBus.get_default ().day_changed.connect (() => {
923+
schedule_button.update_from_item (item);
924+
})] = Services.EventBus.get_default ();
925+
922926
signals_map[notify["edit"].connect (() => {
923927
if (!edit) {
924928
if (Services.Settings.get_default ().settings.get_boolean ("attention-at-one")) {

0 commit comments

Comments
 (0)