Option to add a Microsoft account is disabled on first launch of PolyMC
Operating System
Windows
Version of PolyMC
PolyMC 5.0-develop
Version of Qt
Qt 5.15.5
Description of bug
Upon first launching PolyMC and going through initial config, the option to add a Microsoft account is entirely unavailable. Upon closing and reopening the launcher, the option is enabled and works as expected.
Steps to reproduce
- Launch PolyMC for the first time.
- Complete the initial setup.
- Go to accounts setting page.
- Notice that 'Add Microsoft' is grayed out and right-click menu does not show option to add a Microsoft Account.
- Close PolyMC and reopen it.
- Go back to accounts setting page.
- Notice that the disabled Microsoft Account options are now re-enabled and work correctly.
Suspected cause
Hovering over the grayed out Microsoft Account button states that "No Microsoft Authentication client ID was set", despite the fact that the API key is present in CMakeLists.txt. I'm guessing either the API key is not being properly detected upon first launch of PolyMC, or the Microsoft Account options are not unlocked properly upon first launch.
This issue is unique
- [X] I have searched the issue tracker and did not find an issue describing my bug.
I can reproduce. Maybe regression in https://github.com/PolyMC/PolyMC/pull/1034 ?
I can reproduce. Maybe regression in #1034 ?
Not sure. Also manually adding the API key in the settings does not unlock the Microsoft Account options either while this issue is occurring (though I'm not sure if doing that requires a restart of PolyMC).
This also happens with curseforge
It's like capabilities aren't checked at first launch