Grey out Install when there is no internet connection #87

Closed
opened 2026-10-27 17:18:29 +00:00 by claude-bot · 0 comments
Collaborator

From the phone check of PR #82 (owner): pressing Install with WiFi and mobile data both off fails with a technical error: "temporary failure in name resolution".

Wanted: before the user presses anything, the module manager checks whether a network connection is up. If none is, the Install and Update buttons are greyed out and can't be pressed, with a short plain explanation (e.g. "No internet connection"). They come back when a connection appears. Browsing the cached lists offline keeps working, as now.

Also map download errors (DNS failure, timeout) to a plain message rather than showing the raw error. A connection can still drop after the check.

Notes:

  • Qt 5.15 has QNetworkConfigurationManager::isOnline (deprecated) or NetworkManager over D-Bus; check what AppArmor allows on Ubuntu Touch.
  • A platform API like this goes behind qml/platform/ or the qt glue, while the decision of what to show stays in core/ with a unit test.
From the phone check of PR #82 (owner): pressing Install with WiFi and mobile data both off fails with a technical error: "temporary failure in name resolution". **Wanted:** before the user presses anything, the module manager checks whether a network connection is up. If none is, the Install and Update buttons are greyed out and can't be pressed, with a short plain explanation (e.g. "No internet connection"). They come back when a connection appears. Browsing the cached lists offline keeps working, as now. Also map download errors (DNS failure, timeout) to a plain message rather than showing the raw error. A connection can still drop after the check. Notes: - Qt 5.15 has `QNetworkConfigurationManager::isOnline` (deprecated) or NetworkManager over D-Bus; check what AppArmor allows on Ubuntu Touch. - A platform API like this goes behind `qml/platform/` or the qt glue, while the decision of what to show stays in `core/` with a unit test.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
schaefera/utStudyBIble#87
No description provided.