nyash-qq / galaxy-plugin-twitch

Twitch python plugin for GOG Galaxy 2.0
GNU General Public License v3.0
135 stars 6 forks source link

Plugin authentication canceled immediately if not logged into twitch client #20

Open FriendsOfGalaxy opened 5 years ago

FriendsOfGalaxy commented 5 years ago

Hey,

If a user has twitch client installed but is not authenticated into it then trying to connect twitch integration in Galaxy Client will spin indefinitely.

This is because of these lines: image

It starts auth process and then immediately raises Invalid Credentials (which currently seems to have an issue in Galaxy Client).

I think it would be more intuitive to not cancel authentication right after starting it and possibly wait for it to finish (maybe watch the authentication window?).

Hope this helps.