-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Refresh all avatars upon setting a peer's tag #6348
Conversation
desktop/src/main/java/bisq/desktop/main/offer/offerbook/OfferBookView.java
Outdated
Show resolved
Hide resolved
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.
NACK - I reviewed the code and tested it quickly on Regtest to confirm my assumption that you also need to do some changes in UnconfirmedBsqSwapsView, ClosedTradesView and PendingTradesView which use the PeerInfoIconTrading which extends PeerInfoIcon
I rewrote this using a different approach to eliminate the interface and the multiple identical overrides (since it's now used by many classes). Of course I can revert to using the old approach if you prefer |
How about having something like a PeerInfoIconMap that holds all PeerInfoIcons, listens to a save event of each PeerInfoIcon and calls refreshTag on all instances in the internal Map accordingly. Controlling behavior of other PeerInfoIcons from within a PeerInfoIcon doesn't feel right to me. WDYT? |
No problem, re-re-wrote this 😅 |
Yes, that is what I was thinking about 👍 . Location of the extended HashMap is fine IMO. Maybe we could have put all PeerInfoIcon components into one sub-package, but I think it is fine as it is right now. I'm doing one quick Regtest test and will merge it afterwards. |
@Android-X13 Your last commits haven't been signed somehow. Could you update them and force push it and I'll merge this PR. Thanks! |
03967a8
to
fb8cc89
Compare
@Android-X13 I don't know why, but your first two commits are still not signed. You can see it if the 'Verified' label is not shown next to the commit. |
fb8cc89
to
1bbe90a
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.
ACK
Fixes #4660