fix(qt): move MN/governance tab options from Wallet to Display settings#7152
Conversation
These checkboxes control top-level UI tab visibility and are not wallet-specific settings. The Display tab is the natural home for UI visibility toggles. Closes dashpay#7151 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
✅ No Merge Conflicts DetectedThis PR currently has no conflicts with other open PRs. |
|
No actionable comments were generated in the recent review. 🎉 WalkthroughThis PR reorganizes the options dialog by relocating three UI controls related to Masternodes and Governance features from the Wallet configuration page to the Display configuration page. The affected controls include the Masternodes Tab checkbox, Governance Tab checkbox, and the governance cycle icon settings. The corresponding code logic in optionsdialog.cpp has been updated to reflect these relocations, including adjusting the UI element hiding behavior when wallet functionality is disabled and updating the property mappings accordingly. Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
UdjinM6
left a comment
There was a problem hiding this comment.
line_2is not rendered, should style it properly via css files, same as for existingline(QDialog#OptionsDialog #linein css)line_2and all moved checkboxes should be invisible when running qt with-disablewallet
thepastaclaw
left a comment
There was a problem hiding this comment.
Thanks for the review @UdjinM6! Both issues make sense:
line_2CSS — will add it to the existingQDialog#OptionsDialog #lineselectors in both dark.css and general.css-disablewalletvisibility — will hideline_2,showMasternodesTab,showGovernanceTab, andshowGovernanceCycleIconwhen wallet is disabled
Working on the fix now.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
should adjust |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/qt/optionsdialog.cpp (1)
365-367: Nit: mapper mappings for relocated widgets still under the/* Wallet */comment section.Now that
showMasternodesTab,showGovernanceTab, andshowGovernanceCycleIconlive on the Display page, consider moving these threeaddMappingcalls to the/* Display */section (near line 394) to keep the code organization aligned with the UI layout.🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/qt/optionsdialog.cpp` around lines 365 - 367, The three mapper->addMapping calls for ui->showMasternodesTab, ui->showGovernanceCycleIcon, and ui->showGovernanceTab are placed under the "/* Wallet */" section but the widgets now live on the Display page; move those three mapper->addMapping(...) lines out of the Wallet section into the "/* Display */" section (near where other display-related mappings are added) so the mappings for OptionsModel::ShowMasternodesTab, OptionsModel::ShowGovernanceClock, and OptionsModel::ShowGovernanceTab are grouped with Display-related code.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/qt/optionsdialog.cpp`:
- Around line 365-367: The three mapper->addMapping calls for
ui->showMasternodesTab, ui->showGovernanceCycleIcon, and ui->showGovernanceTab
are placed under the "/* Wallet */" section but the widgets now live on the
Display page; move those three mapper->addMapping(...) lines out of the Wallet
section into the "/* Display */" section (near where other display-related
mappings are added) so the mappings for OptionsModel::ShowMasternodesTab,
OptionsModel::ShowGovernanceClock, and OptionsModel::ShowGovernanceTab are
grouped with Display-related code.
|
Also, having checkboxes at the bottom feels weird. Could maybe move them higher (and maybe also drop
|
Move the mapper->addMapping calls for showMasternodesTab, showGovernanceCycleIcon, and showGovernanceTab from the Wallet section to the Display section, matching the UI layout change.
thepastaclaw
left a comment
There was a problem hiding this comment.
Good catch — moved the three addMapping calls for showMasternodesTab, showGovernanceCycleIcon, and showGovernanceTab from the /* Wallet */ section to the /* Display */ section in 37de975. Thanks!
🤖 This was generated by an automated review bot.
Don't want automated PRs or comments on your code? You can opt out by replying here or messaging @PastaPastaPasta on Slack — we'll make sure the bot skips your PRs/repos going forward.
Add the QDialog#OptionsDialog #line_2 selector to light.css to match the existing selectors in dark.css and general.css.
Per review suggestion from UdjinM6 (c808ffb): move the MN/governance checkboxes above the language/unit selectors on the Display page for a cleaner layout, and remove the line_2 separator entirely. Also removes line_2 CSS selectors from dark.css, general.css, and light.css, and the line_2->hide() call for -disablewallet mode.
|
Addressed all feedback in 1d635fb:
Thanks for the detailed review and the commit showing exactly what you had in mind! 🤖 This was generated by an automated review bot. |


Summary
Move "Show Masternodes Tab", "Show Governance Tab", and "Show governance clock" checkboxes from the Wallet tab to the Display tab in the Options dialog.
These checkboxes control top-level UI tab visibility and are not wallet-specific settings. The Display tab is the natural home for UI visibility toggles.
Changes
src/qt/forms/optionsdialog.ui: Relocated the three checkbox items frompageWallettopageDisplay, with a horizontal line separator before themoptionsdialog.cpp— all widget references use names, not page membershipCloses #7151