Skip to content

Commit

Permalink
Drop NetworkMonitor class, because it is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
byquanton committed Jan 15, 2025
1 parent 0261fa4 commit de501fb
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 43 deletions.
9 changes: 5 additions & 4 deletions src/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,12 @@ public class MainWindow : Adw.ApplicationWindow {
return GLib.Source.REMOVE;
});

Services.NetworkMonitor.instance ().network_changed.connect (() => {
foreach (Objects.Source source in Services.Store.instance ().sources) {
var network_monitor = GLib.NetworkMonitor.get_default ();
network_monitor.network_changed.connect (() => {
foreach (Objects.Source source in Services.Store.instance ().sources) {
source.run_server ();
}
});
}
});
});

var granite_settings = Granite.Settings.get_default ();
Expand Down
38 changes: 0 additions & 38 deletions src/Services/NetworkMonitor.vala

This file was deleted.

2 changes: 1 addition & 1 deletion src/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ sources = files(
'Services/DBusServer.vala',
'Services/Backups.vala',
'Services/MigrateFromPlanner.vala',
'Services/NetworkMonitor.vala',

'Services/CalendarEvents/CalendarEvents.vala',
'Services/CalendarEvents/DateIterator.vala',
Expand Down Expand Up @@ -115,3 +114,4 @@ executable(
dependencies: deps,
install: true
)

0 comments on commit de501fb

Please sign in to comment.