mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-05 08:47:25 -04:00
WalletManager: async close with splash screen
This commit is contained in:
@@ -228,11 +228,11 @@ QString WalletManager::closeWallet()
|
||||
return result;
|
||||
}
|
||||
|
||||
void WalletManager::closeWalletAsync()
|
||||
void WalletManager::closeWalletAsync(const QJSValue& callback)
|
||||
{
|
||||
m_scheduler.run([this] {
|
||||
emit walletClosed(closeWallet());
|
||||
});
|
||||
return QJSValueList({closeWallet()});
|
||||
}, callback);
|
||||
}
|
||||
|
||||
bool WalletManager::walletExists(const QString &path) const
|
||||
|
||||
@@ -117,7 +117,7 @@ public:
|
||||
/*!
|
||||
* \brief closeWalletAsync - asynchronous version of "closeWallet"
|
||||
*/
|
||||
Q_INVOKABLE void closeWalletAsync();
|
||||
Q_INVOKABLE void closeWalletAsync(const QJSValue& callback);
|
||||
|
||||
//! checks is given filename is a wallet;
|
||||
Q_INVOKABLE bool walletExists(const QString &path) const;
|
||||
@@ -192,7 +192,6 @@ signals:
|
||||
void walletPassphraseNeeded();
|
||||
void deviceButtonRequest(quint64 buttonCode);
|
||||
void deviceButtonPressed();
|
||||
void walletClosed(const QString &walletAddress);
|
||||
void checkUpdatesComplete(const QString &result) const;
|
||||
void miningStatus(bool isMining) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user