Skip to content

Commit

Permalink
feat(daemon): add migration notification
Browse files Browse the repository at this point in the history
Add a brief notification, explaining that GSConnect has been
updated and some devices may require re-pairing.
  • Loading branch information
andyholmes committed Jan 30, 2025
1 parent de274cb commit 641f5f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/service/daemon.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ const Service = GObject.registerClass({
}
}

// Notify the user
const notification = Gio.Notification.new(_('Settings Migrated'));
notification.set_body(_('GSConnect has updated to support changes to the KDE Connect protocol. Some devices may need to be repaired.'));
notification.set_icon(new Gio.ThemedIcon({name: 'dialog-warning'}));
notification.set_priority(Gio.NotificationPriority.HIGH);
this.send_notification('settings-migrated', notification);

// Finally, reset the service ID to trigger re-generation.
this.settings.reset('id');
}
Expand Down

0 comments on commit 641f5f9

Please sign in to comment.