mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-11-16 15:58:11 +00:00
Ledger: improve hw wallet splash screen
This commit is contained in:
parent
562c46660a
commit
40bdf692d1
4 changed files with 12 additions and 2 deletions
4
main.qml
4
main.qml
|
@ -859,7 +859,9 @@ ApplicationWindow {
|
|||
", priority: ", priority,
|
||||
", description: ", description);
|
||||
|
||||
showProcessingSplash("Creating transaction");
|
||||
var splashMsg = qsTr("Creating transaction...");
|
||||
splashMsg += appWindow.currentWallet.isLedger() ? qsTr("\n\nPlease check your hardware wallet –\nyour input may be required.") : "";
|
||||
showProcessingSplash(splashMsg);
|
||||
|
||||
transactionDescription = description;
|
||||
|
||||
|
|
|
@ -258,6 +258,11 @@ bool Wallet::isHwBacked() const
|
|||
return m_walletImpl->getDeviceType() != Monero::Wallet::Device_Software;
|
||||
}
|
||||
|
||||
bool Wallet::isLedger() const
|
||||
{
|
||||
return m_walletImpl->getDeviceType() == Monero::Wallet::Device_Ledger;
|
||||
}
|
||||
|
||||
//! create a view only wallet
|
||||
bool Wallet::createViewOnly(const QString &path, const QString &password) const
|
||||
{
|
||||
|
|
|
@ -180,6 +180,7 @@ public:
|
|||
|
||||
//! hw-device backed wallets
|
||||
Q_INVOKABLE bool isHwBacked() const;
|
||||
Q_INVOKABLE bool isLedger() const;
|
||||
|
||||
//! returns if view only wallet
|
||||
Q_INVOKABLE bool viewOnly() const;
|
||||
|
|
|
@ -448,7 +448,9 @@ Rectangle {
|
|||
}
|
||||
|
||||
function creatingWalletDeviceSplash(){
|
||||
appWindow.showProcessingSplash(qsTr("Creating wallet from device..."));
|
||||
var splashMsg = qsTr("Creating wallet from device...");
|
||||
splashMsg += wizardController.walletOptionsDeviceName === "Ledger" ? qsTr("\n\nPlease check your hardware wallet –\nyour input may be required.") : "";
|
||||
appWindow.showProcessingSplash(splashMsg);
|
||||
}
|
||||
|
||||
function createWalletFromDevice() {
|
||||
|
|
Loading…
Reference in a new issue