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

Rename dialog exits before rename is complete #28

Open
davecgh opened this issue Feb 15, 2016 · 3 comments
Open

Rename dialog exits before rename is complete #28

davecgh opened this issue Feb 15, 2016 · 3 comments

Comments

@davecgh
Copy link
Member

davecgh commented Feb 15, 2016

The account rename dialog appears to make an asynchronous RPC call to rename the account and close itself immediately without waiting for a response.

This causes an issue because it leads to the account name in accounts list not being updating for a couple of seconds after the dialog closes when the RPC is slow to respond with btcwallet is under heavy load (such as during initial sync). The result is it appears like the rename was simply ignored which leads to the user attempting to rename it again, except this time the dialog won't do anything when you click rename (no errors or anything), likely because it's trying to rename an account that no longer exists.

I believe the correct way to handle this is simply to have the rename dialog wait for the RPC to complete with a standard "please wait...." message.

@jrick
Copy link
Member

jrick commented Feb 15, 2016

While the RPC is performed asynchronously as to not block the UI thread, it does wait for the completion of the RPC before the dialog is closed. However, the actual update to the rest of the GUI is done asynchronously as part of the normal wallet notifications.

Account name changes are notified this way so that if the name is changed by another process, all clients will become aware of the change.

@davecgh
Copy link
Member Author

davecgh commented Feb 15, 2016

Ah, well maybe a UI update should be triggered immediately?

@jrick
Copy link
Member

jrick commented Feb 15, 2016

Yeah, that would be ideal here.

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

No branches or pull requests

2 participants