Skip to content

qt: Make sure the statusbar reflects internal states correct#3698

Merged
UdjinM6 merged 9 commits into
dashpay:developfrom
xdustinface:pr-ui-25-sync-process
Sep 12, 2020
Merged

qt: Make sure the statusbar reflects internal states correct#3698
UdjinM6 merged 9 commits into
dashpay:developfrom
xdustinface:pr-ui-25-sync-process

Conversation

@xdustinface
Copy link
Copy Markdown

This PR makes sure that the statusbar label, the statusbar progressbar and the statusbar sync/connection icons do always represent the actual current networking/syncing state of the wallet. Before this PR they had literally no meaningful connection to the internals most of the time time.

The statusbar label/progressbar will always show/hide now if required and show the correct internal state.

The sync/spinner icon will now disappear if there are no connections available or if the network gets disabled by setnetworkactive RPC. Before it was just always there, the spinner was mostly inactive and if the wallet got a sync once, it just always showed the synced icon no matter what. As soon as the wallet gets one connection from now on the spinner will pop up start to animate to signal that the wallet is actually doing something. If its done syncing it gets the green checkmark like before. But if it gets out of sync again due to timeout or mnsync RPC it will directly represent this unlike before where it always showed synced.

Also the connection icon does animate now (show/hide the lower dot in orange with 500ms cycle) if there are no connections available to signal that the wallet is trying to connect to the network.

Click here for a preview video of the sync process (i cut some of the middle/governance sync part)

Based on #3688 + #3690

@UdjinM6
Copy link
Copy Markdown

UdjinM6 commented Sep 11, 2020

Needs rebase

@xdustinface
Copy link
Copy Markdown
Author

Needs rebase

Done

@UdjinM6 UdjinM6 added this to the 16 milestone Sep 11, 2020
Copy link
Copy Markdown

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good in general and seems to be working as expected. Just a few code style related suggestions.

Comment thread src/qt/bitcoingui.cpp Outdated
Comment thread src/qt/bitcoingui.cpp Outdated
UdjinM6
UdjinM6 previously approved these changes Sep 12, 2020
Copy link
Copy Markdown

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

Comment thread src/qt/bitcoingui.cpp Outdated
Copy link
Copy Markdown
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall looks good, just that nit

Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
Copy link
Copy Markdown

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

Copy link
Copy Markdown
Member

@PastaPastaPasta PastaPastaPasta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@UdjinM6 UdjinM6 merged commit 3fe3ca9 into dashpay:develop Sep 12, 2020
xdustinface added a commit to xdustinface/dash that referenced this pull request Sep 13, 2020
…#3698)

* qt: Increase number of spinner frames

* qt: Add and use BitcoinGUI::startSpinner and BitcoinGUI::stopSpinner

* qt: Handle CMasternodeSync::Reset calls

* qt: Make sure the statusbar always reflects the sync state/progress

* qt: Add BitcoinGUI::updateProgressBarVisibility

* qt: Animate connection icon while connecting

* qt: Refactor check in BitcoinGUI::updateProgressBarVisibility

* qt: Rename some variables

* Update src/qt/bitcoingui.cpp

Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>

Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Mar 3, 2022
…#3698)

* qt: Increase number of spinner frames

* qt: Add and use BitcoinGUI::startSpinner and BitcoinGUI::stopSpinner

* qt: Handle CMasternodeSync::Reset calls

* qt: Make sure the statusbar always reflects the sync state/progress

* qt: Add BitcoinGUI::updateProgressBarVisibility

* qt: Animate connection icon while connecting

* qt: Refactor check in BitcoinGUI::updateProgressBarVisibility

* qt: Rename some variables

* Update src/qt/bitcoingui.cpp

Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>

Co-authored-by: PastaPastaPasta <6443210+PastaPastaPasta@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

3 participants