-
Notifications
You must be signed in to change notification settings - Fork 1.2k
qt: Add PrivateSend tab in OptionsDialog, allow to show/hide PS UI #3717
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
qt: Add PrivateSend tab in OptionsDialog, allow to show/hide PS UI #3717
Conversation
bd6e77d to
e711ffb
Compare
UdjinM6
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls see suggestions below
UdjinM6
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls see below + there is a bug somewhere but I can't figure it out yet. The issue is like that: disable ps features in options, close and reopen the wallet (no ps ui as expected), enable ps in options -> still no ps ui on overview screen, ps tab and tx filters do appear though. If you close and reopen the wallet now ps ui would appear like it should.
Ah right good catch! The PrivateSend UI update timer isn't created/started and the slots aren't connected if the wallet gets started with PrivateSend disabled. Fixing it 👍 https://github.com/dashpay/dash/blob/develop/src/qt/overviewpage.cpp#L310 |
cb6338e to
f03bce9
Compare
|
@UdjinM6 Okaaay, there were even some more things i missed.. like two signal/slot connections weren't correct and whatnot.. see commits starting with 506614d. Now it instantly updates all UI elements if the checkbox gets toggled.. did only update the "PrivateSend" button of the options instantly before and then only all over the place after you pressed "Ok" in the dialog. It also recovers the previous state properly now if you reject the dialog. And i included #3715 into 4cdd3ca |
|
Why?? We just removed a basically pointless tab, since it made sense to have it under another tab, and yet now we're going to add another "PrivateSend" tab that makes total sense to be under the Wallet tab?? |
I would argue that Wallet tab has too many options already (7 checkboxes and 2 edit fields) and most of them are PS only, adding yet another one "Enable PrivateSend features" would make it look pretty clogged and weird imo. The new Wallet tab has 4 checkboxes and the new PrivateSend tab has 4 checkboxes and 2 edit fields, the later is exactly as for the new Main tab after #3709 on non-mac machines (on mac it's 1 checkbox and 2 edit fields only). If we ever think about exposing more PS options in GUI (and I think it would actually make sense to do) e.g. denoms goals/limits or number of mixing sessions etc. then having a separate tab is the only way to go imo. |
|
concept ACK on splitting settings out from inside of wallet. however privatesend must be enabled by default |
|
Needs rebase. |
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
Not longer needed since the page is just not reachable if the button is hidden.
Not only if its enabled on startup..
Other way of connecting the slot with true as parameter didn't work..
f03bce9 to
bf0c95d
Compare
PastaPastaPasta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
src/qt/forms/optionsdialog.ui
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This tooltip needs to wrap onto multiple lines
|
Also, |
680e85b to
5ceb59b
Compare
Reverted and added a linebreak to the tooltip, should be good enough in two lines? |
Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
|
Re cropping: an easy fix would be to bump https://github.com/dashpay/dash/blob/develop/src/qt/res/css/general.css#L1257 - 635px worked ok-ish in my case |
I had to go all the way up to 710px in order to make it work on ubuntu with default gui settings EDIT: I think this would probably be the easiest fix for now, we can work on making it properly dynamic later |
|
ESC key no longer cancels the changes that were made to ps checkbox, should do smth like 5ea108b88f |
Handle all reject reasons not only the cancle button.
UdjinM6
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
(assuming font issues will be solved via #3734 )
PastaPastaPasta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK
…ashpay#3717) * qt: Add PrivateSend tab in OptionsDialog, allow to show/hide PS UI * qt: Decrease height of OptionsDialog * Apply suggestions from code review * qt: Remove obsolete visibility adjustments Not longer needed since the page is just not reachable if the button is hidden. * qt: Make sure PrivateSend related parts are always initialized properly Not only if its enabled on startup.. * qt: Make updatePrivateSendVisibility a slot to fix the signal connection * qt: Fix UI updates on OverviewPage if PrivateSend enabled gets toggled Other way of connecting the slot with true as parameter didn't work.. * qt: Only update and emit the signal for advanced PS UI if required * qt: Update fPrivateSendEnabled in OptionsModel instead of OptionsDialog * qt: Recover the PrivateSend enabled state if OptionsDialog gets rejected * qt: Enable PrivateSend UI by default * qt: Add some brackets * qt: Add a comment * qt: Add a linebreak to the "Enable PrivateSend features" tooltip * qt: Remove obsolete comment * qt: Move comment * qt: Properly reset the previous PS state if OptionsDialog gets rejected Handle all reject reasons not only the cancle button.
…ashpay#3717) * qt: Add PrivateSend tab in OptionsDialog, allow to show/hide PS UI * qt: Decrease height of OptionsDialog * Apply suggestions from code review Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com> * qt: Remove obsolete visibility adjustments Not longer needed since the page is just not reachable if the button is hidden. * qt: Make sure PrivateSend related parts are always initialized properly Not only if its enabled on startup.. * qt: Make updatePrivateSendVisibility a slot to fix the signal connection * qt: Fix UI updates on OverviewPage if PrivateSend enabled gets toggled Other way of connecting the slot with true as parameter didn't work.. * qt: Only update and emit the signal for advanced PS UI if required * qt: Update fPrivateSendEnabled in OptionsModel instead of OptionsDialog * qt: Recover the PrivateSend enabled state if OptionsDialog gets rejected * qt: Enable PrivateSend UI by default * qt: Add some brackets * qt: Add a comment * qt: Add a linebreak to the "Enable PrivateSend features" tooltip * qt: Remove obsolete comment Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com> * qt: Move comment * qt: Properly reset the previous PS state if OptionsDialog gets rejected Handle all reject reasons not only the cancle button. Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com> Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>


Options -> Walletinto a new tabOptions -> PrivateSendEnable PrivateSend interfaceinOptions ->Wallet. This checkbox allows to dynamically show/hide the PrivateSend related UI elements all over the placeBased on #3716 and #3715
Before
With this PR