From 725e4d75f603e6c6b9cd6ec8eadcd6f3b9a5d9c5 Mon Sep 17 00:00:00 2001 From: Alain Date: Tue, 30 Jul 2024 12:59:49 -0500 Subject: [PATCH] fix #1380 --- .../io.github.alainm23.planify.appdata.xml.in.in | 8 ++++++++ meson.build | 2 +- src/MainWindow.vala | 16 ++++++++-------- src/Views/Project/Project.vala | 15 ++------------- 4 files changed, 19 insertions(+), 22 deletions(-) diff --git a/data/io.github.alainm23.planify.appdata.xml.in.in b/data/io.github.alainm23.planify.appdata.xml.in.in index 811c9e26f..b0c69e166 100644 --- a/data/io.github.alainm23.planify.appdata.xml.in.in +++ b/data/io.github.alainm23.planify.appdata.xml.in.in @@ -67,6 +67,14 @@ https://www.patreon.com/alainm23 @appid@.desktop + + +
    +
  • Fixed bug that does not show synchronised accounts correctly #1380.
  • +
+
+
+
    diff --git a/meson.build b/meson.build index 886a52ac5..7aec0e130 100644 --- a/meson.build +++ b/meson.build @@ -1,7 +1,7 @@ project( 'io.github.alainm23.planify', 'vala', 'c', - version: '4.10.0' + version: '4.10.2' ) gnome = import('gnome') diff --git a/src/MainWindow.vala b/src/MainWindow.vala index 740bd7c54..f3a1a1e34 100644 --- a/src/MainWindow.vala +++ b/src/MainWindow.vala @@ -281,14 +281,6 @@ public class MainWindow : Adw.ApplicationWindow { Services.Store.instance ().project_archived.connect (check_archived); Services.Store.instance ().project_unarchived.connect (check_archived); - - Services.NetworkMonitor.instance ().network_changed.connect (() => { - if (Services.NetworkMonitor.instance ().network_available) { - foreach (Objects.Source source in Services.Store.instance ().sources) { - source.run_server (); - } - } - }); } public void show_hide_sidebar () { @@ -327,6 +319,14 @@ public class MainWindow : Adw.ApplicationWindow { return GLib.Source.REMOVE; }); + + Services.NetworkMonitor.instance ().network_changed.connect (() => { + if (Services.NetworkMonitor.instance ().network_available) { + foreach (Objects.Source source in Services.Store.instance ().sources) { + source.run_server (); + } + } + }); } private void check_archived () { diff --git a/src/Views/Project/Project.vala b/src/Views/Project/Project.vala index a19f35ef8..eb639277e 100644 --- a/src/Views/Project/Project.vala +++ b/src/Views/Project/Project.vala @@ -101,14 +101,6 @@ public class Views.Project : Adw.Bin { animate_transitions = false }; - // view_stack.add_named (new Gtk.Spinner () { - // hexpand = true, - // vexpand = true, - // halign = CENTER, - // valign = CENTER, - // spinning = true - // }, "loading"); - var content_box = new Gtk.Box (Gtk.Orientation.VERTICAL, 0) { hexpand = true, vexpand = true @@ -216,13 +208,10 @@ public class Views.Project : Adw.Bin { } private void update_project_view () { - // view_stack.visible_child_name = "loading"; if (view_style == ProjectViewStyle.LIST) { - var list_page = new Adw.NavigationPage (new Views.List (project), project.name); - view_stack.replace ({ list_page }); + view_stack.replace ({ new Adw.NavigationPage (new Views.List (project), project.name) }); } else if (view_style == ProjectViewStyle.BOARD) { - var board_page = new Adw.NavigationPage (new Views.Board (project), project.name); - view_stack.replace ({ board_page }); + view_stack.replace ({ new Adw.NavigationPage (new Views.Board (project), project.name) }); } }