Better GUI error message for down server
This commit is contained in:
@@ -155,8 +155,11 @@ void ConnectionLoader::doAutoConnect()
|
||||
QString response = litelib_process_response(resp);
|
||||
|
||||
if (response.toUpper().trimmed() != "OK") {
|
||||
showError(response);
|
||||
QString resp = "Error when connecting to " + config->server + ": " + response;
|
||||
showError(resp);
|
||||
return;
|
||||
} else {
|
||||
qDebug() << __func__ << ": Successfully connected to " << config->server << " !!!";
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
@@ -328,11 +328,6 @@ QString Settings::getRandomServer() {
|
||||
return server;
|
||||
}
|
||||
|
||||
QString Settings::getDefaultServer() {
|
||||
qDebug() << __func__;
|
||||
return "https://lite.hush.is";
|
||||
}
|
||||
|
||||
void Settings::openAddressInExplorer(QString address) {
|
||||
QString url = "https://explorer.hush.is/address/" + address;
|
||||
QDesktopServices::openUrl(QUrl(url));
|
||||
|
||||
Reference in New Issue
Block a user