Better GUI error message for down server

This commit is contained in:
Duke Leto
2021-05-03 12:50:14 -04:00
parent aad29abc15
commit e2770675b5
2 changed files with 4 additions and 6 deletions

View File

@@ -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 {

View File

@@ -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));