Skip to content
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

DAO governance open proposals show delete icon on wrong items #3899

Closed
wiz opened this issue Jan 14, 2020 · 5 comments · Fixed by #3920
Closed

DAO governance open proposals show delete icon on wrong items #3899

wiz opened this issue Jan 14, 2020 · 5 comments · Fixed by #3920
Labels

Comments

@wiz
Copy link
Contributor

wiz commented Jan 14, 2020

On my proposals, there is no "delete" icon visible, but there is for another CR by devin:

Screen Shot 2020-01-14 at 20 09 24

Further down the list, I am not beingindot but for some reason a "delete" icon appears on his CR for me.

Screen Shot 2020-01-14 at 20 07 31

@niyid
Copy link
Contributor

niyid commented Jan 18, 2020

Strange. I didn't notice any discrepancies on my list.

@chimp1984
Copy link
Contributor

I think that happens at scrolling with some missing updates/resets at cell renderers.

@niyid
Copy link
Contributor

niyid commented Jan 18, 2020

I think that happens at scrolling with some missing updates/resets at cell renderers.

@wiz
If the suggestion by @chimp1984 is correct, then the result will never be consistent - meaning I expect a different result on each try in reproducing the result.

I will suggest you try this again and see the result.

@ripcurlx
Copy link
Contributor

I quickly read through the code in ProposalsView and it could happen if the iconButton that is returned from item.getIconButton() is null. In that case the graphic is not updated and an old value could be seen. Need to be checked if that actually can happen (probably can, otherwise the iconButton null check is unnecessary)

@niyid
Copy link
Contributor

niyid commented Jan 27, 2020

It will be safe to call setGraphic(null) in the else block of if (iconButton != null) {.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants