Browse Source

move connection error to status bar, lib update

pull/148/head
lucretius 3 months ago
parent
commit
26182290f5
  1. 2
      lib/Cargo.lock
  2. 2
      lib/Cargo.toml
  3. 9
      src/controller.cpp

2
lib/Cargo.lock

@ -1849,7 +1849,7 @@ dependencies = [
[[package]]
name = "silentdragonlitelib"
version = "0.1.0"
source = "git+https://git.hush.is/hush/silentdragonlite-cli?rev=767929a59f30d9c2e540c06359760b49b6986766#767929a59f30d9c2e540c06359760b49b6986766"
source = "git+https://git.hush.is/hush/silentdragonlite-cli?rev=3950c103b15de0f87c45bd01ccba513814ad9ca7#3950c103b15de0f87c45bd01ccba513814ad9ca7"
dependencies = [
"base58",
"bellman",

2
lib/Cargo.toml

@ -12,4 +12,4 @@ crate-type = ["staticlib"]
libc = "0.2.58"
lazy_static = "1.4.0"
blake3 = "0.3.4"
silentdragonlitelib = { git = "https://git.hush.is/hush/silentdragonlite-cli", rev = "767929a59f30d9c2e540c06359760b49b6986766" }
silentdragonlitelib = { git = "https://git.hush.is/hush/silentdragonlite-cli", rev = "3950c103b15de0f87c45bd01ccba513814ad9ca7" }

9
src/controller.cpp

@ -607,12 +607,9 @@ void Controller::getInfoThenRefresh(bool force)
if (!shown && prevCallSucceeded) // show error only first time
{
shown = true;
QMessageBox::critical(
main,
QObject::tr("Connection Error"),
QObject::tr("There was an error connecting to the server. Please check your internet connection. The error was") + ": \n\n"+ err,
QMessageBox::StandardButton::Ok
);
QString errorMessage = QObject::tr("There was an error connecting to the server. Please check your internet connection. The error was") + ": \n\n" + err;
ui->statusBar->showMessage(errorMessage, 5000);
shown = false;
}

Loading…
Cancel
Save