Startup logic can handle login mode correctly when older ayon-launcher was used to launch new ayon launcher version.
Additional info
Login mode was introduced in 1.0.1, when user launches e.g. version 1.0.0 which will, by bundle definition, relaunch to version 1.0.1. In that case AYON_API_KEY is set from 1.0.0 but AYON_IN_LOGIN_MODE is not set, so launcher will resolve as "not in login mode" which is incorrect assumption. This PR is handling cases when the first launched launcher version is before 1.0.1.
Question is if this PR makes sense as 1.0.1 still won't be able to handle it and at the time of 1.0.2 release will probably none of users use older ayon launchers.
Testing notes:
Make a build and installer from this PR.
Upload it to server and use the version in your production bundle.
Launch older ayon launcher e.g. 1.0.0 (must be older than 1.0.1).
AYON launcher should launch, use uploaded version and should be in login mode (Login action in tray should allow to change login).
Changelog Description
Startup logic can handle login mode correctly when older ayon-launcher was used to launch new ayon launcher version.
Additional info
Login mode was introduced in 1.0.1, when user launches e.g. version 1.0.0 which will, by bundle definition, relaunch to version 1.0.1. In that case
AYON_API_KEY
is set from 1.0.0 butAYON_IN_LOGIN_MODE
is not set, so launcher will resolve as "not in login mode" which is incorrect assumption. This PR is handling cases when the first launched launcher version is before 1.0.1.Question is if this PR makes sense as 1.0.1 still won't be able to handle it and at the time of 1.0.2 release will probably none of users use older ayon launchers.
Testing notes: