Merge lp:~marcustomlinson/unity-scopes-shell/oa_loading_bar into lp:unity-scopes-shell
Proposed by
Marcus Tomlinson
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Paweł Stołowski | ||||
Approved revision: | 179 | ||||
Merged at revision: | 180 | ||||
Proposed branch: | lp:~marcustomlinson/unity-scopes-shell/oa_loading_bar | ||||
Merge into: | lp:unity-scopes-shell | ||||
Diff against target: |
62 lines (+20/-5) 2 files modified
src/Unity/CMakeLists.txt (+1/-1) src/Unity/scope.cpp (+19/-4) |
||||
To merge this branch: | bzr merge lp:~marcustomlinson/unity-scopes-shell/oa_loading_bar | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paweł Stołowski (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+244335@code.launchpad.net |
Commit message
Animate the loading bar on the scope while OA retrieves a token.
To post a comment you must log in.
In the case where either:
1. A new account is added from settings, the scope service is enabled under that account, then the log-in button is pressed in a scope.
2. The token for a scope expires (bringing the log-in button back), then the log-in button is pressed in the scope.
The call to OA to refresh the token takes some time to return with no UI indication.
This branch uses setSearchInProg ress() in order to animate the scope's loading bar while we wait for the token to be returned.
NOTE: The reason I need to use ExcludeUserInpu tEvents for the event loop here is because we can't allow the user move to another scope / open a preview while this method is busy. This is because the post log-in action needs to be performed from the state the scope was at the time the log-in button was pressed.