-
Notifications
You must be signed in to change notification settings - Fork 288
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: Disable requests context menu actions when appropriate #214
qt: Disable requests context menu actions when appropriate #214
Conversation
utACK 69915b8 - I guess comparing against zero for an "empty" amount is acceptable here. |
Comparing against zero is what's used to determine |
Concept ACK. |
69915b8
to
336a643
Compare
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.
tested ACK 336a643
didn't review code
Concept ACK. |
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 336a643, tested on Linux Mint 20.1 (Qt 5.12.8).
336a643
to
3f83f05
Compare
updated from 336a643 -> 3f83f05, thanks @hebasto @MarcoFalke for the review Changes:
|
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.
The recent requests table will allow you to copy data points even if they do not exist. This PR implements checks to disable the 'copy label', 'copy message', and 'copy amount' context menu action if the respective fields are empty.
3f83f05
to
bb3da8f
Compare
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.
re-ACK bb3da8f
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.
utACK
The recent requests table will allow you to copy data points even if they do not exist. This PR implements checks to disable the
copy label
,copy message
, andcopy amount
context menu actions if the respective fields are empty. This brings the recent requests table context menu behavior closer to the behavior seen in the transaction view.On a payment request entry which does not have a value for label, message, or amount:
copy URI
never needs to be disabled as an entry in the recent requests table must have a URI even if it doesn't have a label, message, or amount. #213 will add acopy address
context menu action. This also does not need a check as an entry must be associated with an address.Below are some more examples of how this PR will behave:

Has Label, Message, and Amount
Has Label and Amount, but no Message
