Skip to content

Commit

Permalink
Merge pull request #1509 from byquanton/fix/offline-tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 authored Jan 14, 2025
2 parents 91c4a79 + 3e42e24 commit 455651e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Widgets/SyncButton.vala
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public class Widgets.SyncButton : Adw.Bin {
private void network_available () {
if (Services.NetworkMonitor.instance ().network_available) {
stack.visible_child_name = "sync";
tooltip_markup = "";
} else {
stack.visible_child_name = "error";
tooltip_markup = "<b>%s</b>\n%s".printf (_("Offline Mode Is On"), _("Looks like you'are not connected to the\ninternet. Changes you make in offline\nmode will be synced when you reconnect")); // vala-lint=line-length
Expand Down

0 comments on commit 455651e

Please sign in to comment.