From 3e42e24437103103182113bc7db0241649a55e45 Mon Sep 17 00:00:00 2001 From: byquanton <32410361+byquanton@users.noreply.github.com> Date: Tue, 14 Jan 2025 10:17:50 +0100 Subject: [PATCH] Fix: Remove "Offline Mode" tooltip when network is available again --- src/Widgets/SyncButton.vala | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Widgets/SyncButton.vala b/src/Widgets/SyncButton.vala index ccc350bdb..cde1bf6eb 100644 --- a/src/Widgets/SyncButton.vala +++ b/src/Widgets/SyncButton.vala @@ -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 = "%s\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