mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-24 10:38:33 +02:00
Trezor: fix splashdialog hide on pin cancel
This commit is contained in:
@@ -22,6 +22,7 @@ WindowManager::WindowManager() {
|
||||
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);
|
||||
@@ -374,6 +375,10 @@ void WindowManager::onDeviceButtonRequest(quint64 code) {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user