Flow2: Poll for auth result upon account setup wizard window activation
authorMichael Schuster <michael@schuster.ms>
Fri, 20 Dec 2019 03:05:39 +0000 (04:05 +0100)
committerMichael Schuster <48932272+misch7@users.noreply.github.com>
Tue, 24 Dec 2019 06:46:57 +0000 (07:46 +0100)
commite8348612b496fcd0903cda57433889bbe8ad9f16
tree5ba428ad9e8ed5172a5889bc8c44d5246b4d65aa
parent3a160a4dce5f0698023043585763c70aefd9b35e
Flow2: Poll for auth result upon account setup wizard window activation

Since the default remote poll interval has been re-raised recently to 30 seconds,
the delay between clicking "Grant access" in the browser and fetch and showing success
in the wizard may seem erroneous to the users and tempt them to click "Re-open browser"
again, causing the whole login process to restart.

This commit implements an event handler to pass the wizard's window activation
event down to the Login Flow v2 page, in order to allow it to poll earlier.

Signed-off-by: Michael Schuster <michael@schuster.ms>
src/gui/creds/flow2auth.cpp
src/gui/creds/flow2auth.h
src/gui/wizard/flow2authcredspage.cpp
src/gui/wizard/flow2authcredspage.h
src/gui/wizard/owncloudwizard.cpp
src/gui/wizard/owncloudwizard.h