mirror of
https://github.com/wownero/wowlet.git
synced 2026-12-04 05:54:01 +01:00
Ensure ringdb is written after wallet creation [2]
This commit is contained in:
@@ -461,6 +461,8 @@ void MainWindow::onWalletOpened() {
|
||||
qDebug() << Q_FUNC_INFO;
|
||||
m_splashDialog->hide();
|
||||
|
||||
m_ctx->wallet->setRingDatabase(Utils::ringDatabasePath());
|
||||
|
||||
m_ctx->updateBalance();
|
||||
if (m_ctx->wallet->isHwBacked()) {
|
||||
m_statusBtnHwDevice->show();
|
||||
|
||||
@@ -1359,6 +1359,10 @@ bool Wallet::isDeviceConnected() const {
|
||||
return m_walletImpl->isDeviceConnected();
|
||||
}
|
||||
|
||||
bool Wallet::setRingDatabase(const QString &path) {
|
||||
return m_walletImpl->setRingDatabase(path.toStdString());
|
||||
}
|
||||
|
||||
void Wallet::onPassphraseEntered(const QString &passphrase, bool enter_on_device, bool entry_abort)
|
||||
{
|
||||
if (m_walletListener != nullptr)
|
||||
|
||||
@@ -462,6 +462,8 @@ public:
|
||||
|
||||
bool isDeviceConnected() const;
|
||||
|
||||
bool setRingDatabase(const QString &path);
|
||||
|
||||
// TODO: setListenter() when it implemented in API
|
||||
signals:
|
||||
// emitted on every event happened with wallet
|
||||
|
||||
Reference in New Issue
Block a user