Fixed logic for plugin settings window testing auth
parent
ae6cd7f906
commit
78b1a6686c
|
@ -41,8 +41,8 @@ namespace LANCommander.PlaynitePlugin
|
||||||
PART_AuthenticateLabel.Content = Settings.InstallDirectory;
|
PART_AuthenticateLabel.Content = Settings.InstallDirectory;
|
||||||
var token = new AuthToken()
|
var token = new AuthToken()
|
||||||
{
|
{
|
||||||
AccessToken = Plugin.Settings.AccessToken,
|
AccessToken = Settings.AccessToken,
|
||||||
RefreshToken = Plugin.Settings.RefreshToken,
|
RefreshToken = Settings.RefreshToken,
|
||||||
};
|
};
|
||||||
|
|
||||||
var task = Task.Run(() => Plugin.LANCommander.ValidateToken(token))
|
var task = Task.Run(() => Plugin.LANCommander.ValidateToken(token))
|
||||||
|
@ -52,7 +52,7 @@ namespace LANCommander.PlaynitePlugin
|
||||||
{
|
{
|
||||||
Dispatcher.Invoke(new Action(() =>
|
Dispatcher.Invoke(new Action(() =>
|
||||||
{
|
{
|
||||||
if (antecedent.Result == true)
|
if (antecedent.Result == false)
|
||||||
{
|
{
|
||||||
PART_AuthenticateLabel.Content = "Authentication failed!";
|
PART_AuthenticateLabel.Content = "Authentication failed!";
|
||||||
PART_AuthenticationButton.IsEnabled = true;
|
PART_AuthenticationButton.IsEnabled = true;
|
||||||
|
|
Loading…
Reference in New Issue