forked from KomodoPlatform/komodo-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
Service internet.checker.service
firstcryptoman edited this page Dec 13, 2021
·
1 revision
This service checks if your internet connection is still valid. If not it notifies the frontend and shows an error popup where you can try to reconnect.
bool internet_reacheable;
This member tells if the internet status is valid.
Rectangle {
id: app
visible: !API.app.internet_checker.internet_reacheable
}
Q_INVOKABLE void retry() noexcept;
This function can be called from the frontend. It attemps to check if the connexion status is valid or not. If it succeeds, it sets is_internet_alive
Q_PROPERTY to true. Otherwise it sets the property to false.
DefaultButton {
text: qsTr("Retry")
onClicked: API.app.internet_checker.retry()
Layout.alignment: Qt.AlignHCenter
}