mirror of
https://github.com/feather-wallet/feather.git
synced 2024-11-17 01:37:53 +00:00
Trezor: handle PIN requests in MainWindow
This commit is contained in:
parent
5262e388f1
commit
f818812c12
1 changed files with 11 additions and 0 deletions
|
@ -1170,9 +1170,20 @@ void MainWindow::onDeviceError(const QString &error) {
|
|||
}
|
||||
|
||||
void MainWindow::onDeviceButtonRequest(quint64 code) {
|
||||
qDebug() << "DeviceButtonRequest, code: " << code;
|
||||
|
||||
if (m_ctx->wallet->isTrezor()) {
|
||||
switch (code) {
|
||||
case 1:
|
||||
{
|
||||
m_splashDialog->setMessage("Action required on device: Enter your PIN to continue");
|
||||
m_splashDialog->setIcon(QPixmap(":/assets/images/key.png"));
|
||||
m_splashDialog->show();
|
||||
m_splashDialog->setEnabled(true);
|
||||
break;
|
||||
}
|
||||
case 8:
|
||||
default:
|
||||
{
|
||||
// Annoyingly, this code is used for a variety of actions, including:
|
||||
// Confirm refresh: Do you really want to start refresh?
|
||||
|
|
Loading…
Reference in a new issue