Seed: fix misc UI

This commit is contained in:
tobtoht
2022-05-26 20:30:39 +02:00
parent 93a6a986e0
commit 6633353bf3
8 changed files with 27 additions and 19 deletions
+3 -3
View File
@@ -788,9 +788,9 @@ void MainWindow::updatePasswordIcon() {
void MainWindow::showRestoreHeightDialog() {
// settings custom restore height is only available for 25 word seeds
auto seed = m_ctx->wallet->getCacheAttribute("feather.seed");
if(!seed.isEmpty()) { // TODO: update this warning (import tx, delete cache, restore from seed)
const auto msg = "This wallet has a 14 word mnemonic seed which has the restore height embedded.";
auto seedLength = m_ctx->wallet->seedLength();
if (seedLength == 14 || seedLength == 16) { // TODO: update this warning (import tx, delete cache, restore from seed)
const auto msg = "This wallet has a mnemonic seed with an embedded restore height.";
QMessageBox::warning(this, "Cannot set custom restore height", msg);
return;
}