Fix offline mode toggle and add network verification

- Change OfflinePlaceholder icon to use offline.svg instead of Power icon
- Add flex-shrink protection to Toggle component to prevent collapsing
- Add network verification when disabling offline mode:
  - Check network connectivity before switching to online
  - Show semi-transparent overlay during check
  - Revert to offline and show toast if no internet available
- Add check_network Tauri command to verify connectivity
- Add i18n strings for noNetworkToast and checkingNetwork (en/es)
This commit is contained in:
vicrodh committed 2026-01-15 23:55:45 -06:00
1 parent 5c1fb23899
commit 373e61f0bd
8 files changed
+95 -18

No files matched your search

+3 -1
View File
@@ -444,6 +444,8 @@
"notAvailable": "Not Available Offline",
"trackNotAvailable": "This track is not available offline",
"featureDisabled": "This feature requires internet connection",
"startWithoutLogin": "Start in offline mode without logging in"
"startWithoutLogin": "Start in offline mode without logging in",
"noNetworkToast": "No internet connection available",
"checkingNetwork": "Checking network connection..."
}
}
+3 -1
View File
@@ -444,6 +444,8 @@
"notAvailable": "No Disponible Offline",
"trackNotAvailable": "Esta pista no esta disponible offline",
"featureDisabled": "Esta funcion requiere conexion a internet",
"startWithoutLogin": "Iniciar en modo offline sin autenticacion"
"startWithoutLogin": "Iniciar en modo offline sin autenticacion",
"noNetworkToast": "No hay conexion a internet disponible",
"checkingNetwork": "Verificando conexion a internet..."
}
}