Skip to content

Commit 3b16a88

Browse files
UdjinM6claude
authored andcommitted
fix: Restore dialog size when going back from verification to word list
When clicking "Back" in the verification step (Step 2) to return to the word list display (Step 1), restore the original dialog size. Issue: Step 2 reduces minimum size to 460x280 for compact verification form, but setupStep1() didn't restore the original 550x360 size, causing the dialog to remain small when returning to the larger word list view. Fix: - Restore minimum size to 550x360 in setupStep1() - Resize to m_defaultSize when returning from Step 2 - Keep adjustSize() only for initial setup This ensures a consistent dialog size throughout the user flow. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent f79a750 commit 3b16a88

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/qt/mnemonicverificationdialog.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,16 @@ void MnemonicVerificationDialog::setupStep1()
112112
ui->writtenDownCheckbox->setChecked(false);
113113
m_mnemonic_revealed = false;
114114
ui->buttonBox->hide();
115-
// Compact to content
116-
adjustSize();
115+
// Restore original minimum size (in case we came back from Step 2)
116+
setMinimumSize(QSize(550, 360));
117+
118+
// Restore to default size if we have it (when coming back from Step 2)
119+
if (m_defaultSize.isValid() && !m_defaultSize.isEmpty()) {
120+
resize(m_defaultSize);
121+
} else {
122+
// Compact to content on first load
123+
adjustSize();
124+
}
117125

118126
// Set warning and instruction text with themed colors
119127
// Font sizes and weights are defined in general.css

0 commit comments

Comments
 (0)