Skip to content

Commit

Permalink
fix #1380
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Jul 30, 2024
1 parent 115c4b8 commit 725e4d7
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 22 deletions.
8 changes: 8 additions & 0 deletions data/io.github.alainm23.planify.appdata.xml.in.in
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@
<url type="donation">https://www.patreon.com/alainm23</url>
<launchable type="desktop-id">@[email protected]</launchable>
<releases>
<release version="4.10.2" date="2024-07-30">
<description translate="no">
<ul>
<li>Fixed bug that does not show synchronised accounts correctly #1380.</li>
</ul>
</description>
</release>

<release version="4.10.0" date="2024-07-29">
<description translate="no">
<ul>
Expand Down
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
project(
'io.github.alainm23.planify',
'vala', 'c',
version: '4.10.0'
version: '4.10.2'
)

gnome = import('gnome')
Expand Down
16 changes: 8 additions & 8 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down Expand Up @@ -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 () {
Expand Down
15 changes: 2 additions & 13 deletions src/Views/Project/Project.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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) });
}
}

Expand Down

0 comments on commit 725e4d7

Please sign in to comment.