diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2024-11-11 12:28:23 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2024-11-11 12:28:23 +0100 |
commit | 483b2e960f24c370d9e0260ab4ba8b3453408590 (patch) | |
tree | ec5e83ac39e4e5cec0ab9494da2d0edaafe72d89 /src/events/EventsBranch.vala | |
parent | 1bbf886bafc680c56ddd5e27ddd803b4e03685df (diff) | |
parent | cb001bb8056869f98e9a62248bdd509a69d08faf (diff) |
Merge branch 'feature/upstrem' into develop
Diffstat (limited to 'src/events/EventsBranch.vala')
-rw-r--r-- | src/events/EventsBranch.vala | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/events/EventsBranch.vala b/src/events/EventsBranch.vala index 0550eb7..1a3ac69 100644 --- a/src/events/EventsBranch.vala +++ b/src/events/EventsBranch.vala @@ -174,8 +174,10 @@ public class Events.Branch : Sidebar.Branch { private void on_config_changed() { bool value = Config.Facade.get_instance().get_events_sort_ascending(); - sort_ascending = value; - reorder_all(); + if (value != sort_ascending) { + sort_ascending = value; + reorder_all(); + } } private void on_events_added_removed(Gee.Iterable<DataObject>? added, @@ -456,7 +458,7 @@ public class Events.UndatedDirectoryEntry : Events.DirectoryEntry { protected override Page create_page() { return new SubEventsDirectoryPage(SubEventsDirectoryPage.DirectoryType.UNDATED, - new DateTime.now_local()); + new DateTime.now(Application.timezone)); } } |