Browse Source

Push checking for updates to be last, give the user data first

chat
Duke Leto 4 years ago
parent
commit
50f44ac221
  1. 13
      src/mainwindow.cpp

13
src/mainwindow.cpp

@ -64,12 +64,6 @@ MainWindow::MainWindow(QWidget *parent) :
// Send button
QObject::connect(ui->sendMemo, &QPushButton::clicked, this, &MainWindow::sendMemo);
// Set up check for updates action
QObject::connect(ui->actionCheck_for_Updates, &QAction::triggered, [=] () {
// Silent is false, so show notification even if no update was found
rpc->checkForUpdate(false);
});
// Request hush
QObject::connect(ui->actionRequest_zcash, &QAction::triggered, [=]() {
RequestDialog::showRequestZcash(this);
@ -143,6 +137,13 @@ MainWindow::MainWindow(QWidget *parent) :
setupChatTab();
setupHushTab();
// Set up check for updates action
QObject::connect(ui->actionCheck_for_Updates, &QAction::triggered, [=] () {
// Silent is false, so show notification even if no update was found
rpc->checkForUpdate(false);
});
rpc = new RPC(this);
qDebug() << "Created RPC";

Loading…
Cancel
Save