mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-19 16:18:39 +02:00
Menu: remove 'Change restore height'
Restoring the wallet from seed is the preferred UX here. Missing transactions should be imported using Tools -> Import transaction.
This commit is contained in:
@@ -199,24 +199,6 @@ void AppContext::onTorSettingsChanged() {
|
||||
qDebug() << "Changed privacyLevel to " << privacyLevel;
|
||||
}
|
||||
|
||||
void AppContext::onSetRestoreHeight(quint64 height){
|
||||
auto seedLength = this->wallet->seedLength();
|
||||
if (seedLength == 14 || seedLength == 16) {
|
||||
const auto msg = "This wallet has a mnemonic seed with an embedded restore height.";
|
||||
emit setRestoreHeightError(msg);
|
||||
return;
|
||||
}
|
||||
|
||||
this->wallet->setWalletCreationHeight(height);
|
||||
this->wallet->setPassword(this->wallet->getPassword()); // trigger .keys write
|
||||
|
||||
// nuke wallet cache
|
||||
const auto fn = this->wallet->cachePath();
|
||||
WalletManager::clearWalletCache(fn);
|
||||
|
||||
emit customRestoreHeightSet(height);
|
||||
}
|
||||
|
||||
void AppContext::stopTimers() {
|
||||
m_storeTimer.stop();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user