File tree Expand file tree Collapse file tree 3 files changed +6
-43
lines changed Expand file tree Collapse file tree 3 files changed +6
-43
lines changed Original file line number Diff line number Diff line change @@ -201,11 +201,12 @@ public class MainWindow : Adw.ApplicationWindow {
201201 return GLib . Source . REMOVE ;
202202 });
203203
204- Services . NetworkMonitor . instance (). network_changed. connect (() = > {
205- foreach (Objects . Source source in Services . Store . instance (). sources) {
204+ var network_monitor = GLib . NetworkMonitor . get_default ();
205+ network_monitor. network_changed. connect (() = > {
206+ foreach (Objects . Source source in Services . Store . instance (). sources) {
206207 source. run_server ();
207- }
208- });
208+ }
209+ });
209210 });
210211
211212 var granite_settings = Granite.Settings.get_default ();
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -20,7 +20,6 @@ sources = files(
2020 ' Services/DBusServer.vala' ,
2121 ' Services/Backups.vala' ,
2222 ' Services/MigrateFromPlanner.vala' ,
23- ' Services/NetworkMonitor.vala' ,
2423
2524 ' Services/CalendarEvents/CalendarEvents.vala' ,
2625 ' Services/CalendarEvents/DateIterator.vala' ,
@@ -115,3 +114,4 @@ executable(
115114 dependencies : deps,
116115 install : true
117116)
117+
You can’t perform that action at this time.
0 commit comments