Skip to content

Commit 725e4d7

Browse files
committed
fix #1380
1 parent 115c4b8 commit 725e4d7

File tree

4 files changed

+19
-22
lines changed

4 files changed

+19
-22
lines changed

data/io.github.alainm23.planify.appdata.xml.in.in

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@
6767
<url type="donation">https://www.patreon.com/alainm23</url>
6868
<launchable type="desktop-id">@[email protected]</launchable>
6969
<releases>
70+
<release version="4.10.2" date="2024-07-30">
71+
<description translate="no">
72+
<ul>
73+
<li>Fixed bug that does not show synchronised accounts correctly #1380.</li>
74+
</ul>
75+
</description>
76+
</release>
77+
7078
<release version="4.10.0" date="2024-07-29">
7179
<description translate="no">
7280
<ul>

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
project(
22
'io.github.alainm23.planify',
33
'vala', 'c',
4-
version: '4.10.0'
4+
version: '4.10.2'
55
)
66

77
gnome = import('gnome')

src/MainWindow.vala

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -281,14 +281,6 @@ public class MainWindow : Adw.ApplicationWindow {
281281

282282
Services.Store.instance ().project_archived.connect (check_archived);
283283
Services.Store.instance ().project_unarchived.connect (check_archived);
284-
285-
Services.NetworkMonitor.instance ().network_changed.connect (() => {
286-
if (Services.NetworkMonitor.instance ().network_available) {
287-
foreach (Objects.Source source in Services.Store.instance ().sources) {
288-
source.run_server ();
289-
}
290-
}
291-
});
292284
}
293285

294286
public void show_hide_sidebar () {
@@ -327,6 +319,14 @@ public class MainWindow : Adw.ApplicationWindow {
327319

328320
return GLib.Source.REMOVE;
329321
});
322+
323+
Services.NetworkMonitor.instance ().network_changed.connect (() => {
324+
if (Services.NetworkMonitor.instance ().network_available) {
325+
foreach (Objects.Source source in Services.Store.instance ().sources) {
326+
source.run_server ();
327+
}
328+
}
329+
});
330330
}
331331

332332
private void check_archived () {

src/Views/Project/Project.vala

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,6 @@ public class Views.Project : Adw.Bin {
101101
animate_transitions = false
102102
};
103103

104-
// view_stack.add_named (new Gtk.Spinner () {
105-
// hexpand = true,
106-
// vexpand = true,
107-
// halign = CENTER,
108-
// valign = CENTER,
109-
// spinning = true
110-
// }, "loading");
111-
112104
var content_box = new Gtk.Box (Gtk.Orientation.VERTICAL, 0) {
113105
hexpand = true,
114106
vexpand = true
@@ -216,13 +208,10 @@ public class Views.Project : Adw.Bin {
216208
}
217209

218210
private void update_project_view () {
219-
// view_stack.visible_child_name = "loading";
220211
if (view_style == ProjectViewStyle.LIST) {
221-
var list_page = new Adw.NavigationPage (new Views.List (project), project.name);
222-
view_stack.replace ({ list_page });
212+
view_stack.replace ({ new Adw.NavigationPage (new Views.List (project), project.name) });
223213
} else if (view_style == ProjectViewStyle.BOARD) {
224-
var board_page = new Adw.NavigationPage (new Views.Board (project), project.name);
225-
view_stack.replace ({ board_page });
214+
view_stack.replace ({ new Adw.NavigationPage (new Views.Board (project), project.name) });
226215
}
227216
}
228217

0 commit comments

Comments
 (0)