connect(m_walletManager, &WalletManager::walletOpened, this, &WindowManager::onWalletOpened);
connect(m_walletManager, &WalletManager::walletCreated, this, &WindowManager::onWalletCreated);
connect(m_walletManager, &WalletManager::deviceButtonRequest, this, &WindowManager::onDeviceButtonRequest);
+ connect(m_walletManager, &WalletManager::deviceButtonPressed, this, &WindowManager::onDeviceButtonPressed);
connect(m_walletManager, &WalletManager::deviceError, this, &WindowManager::onDeviceError);
connect(qApp, &QGuiApplication::lastWindowClosed, this, &WindowManager::quitAfterLastWindow);
m_splashDialog->setEnabled(true);
}
+void WindowManager::onDeviceButtonPressed() {
+ m_splashDialog->hide();
+}
+
void WindowManager::onDeviceError(const QString &errorMessage) {
// TODO: when does this get called?
qCritical() << Q_FUNC_INFO << errorMessage;
void onWalletOpenPasswordRequired(bool invalidPassword, const QString &path);
void onInitialNetworkConfigured();
void onDeviceButtonRequest(quint64 code);
+ void onDeviceButtonPressed();
void onDeviceError(const QString &errorMessage);
private:
emit m_mgr->deviceButtonRequest(code);
}
//
-// virtual void onDeviceButtonPressed() override
-// {
-// qDebug() << __FUNCTION__;
-// emit m_mgr->deviceButtonPressed();
-// }
+ virtual void onDeviceButtonPressed() override
+ {
+ qDebug() << __FUNCTION__;
+ emit m_mgr->deviceButtonPressed();
+ }
virtual void onDeviceError(const std::string &message) override
{