Skip to content

Commit 3e42e24

Browse files
committed
Fix: Remove "Offline Mode" tooltip when network is available again
1 parent 91c4a79 commit 3e42e24

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Widgets/SyncButton.vala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ public class Widgets.SyncButton : Adw.Bin {
7474
private void network_available () {
7575
if (Services.NetworkMonitor.instance ().network_available) {
7676
stack.visible_child_name = "sync";
77+
tooltip_markup = "";
7778
} else {
7879
stack.visible_child_name = "error";
7980
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

0 commit comments

Comments
 (0)