Skip to content

Commit

Permalink
fix bug of login
Browse files Browse the repository at this point in the history
  • Loading branch information
yaronzz committed Nov 18, 2020
1 parent f6110e9 commit c7a42bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
Binary file added TIDALDL-UI-PRO/.vs/TIDALDL-UI/v16/-Home.suo
Binary file not shown.
Binary file modified TIDALDL-UI-PRO/.vs/TIDALDL-UI/v16/.suo
Binary file not shown.
5 changes: 5 additions & 0 deletions TIDALDL-UI-PRO/Pages/LoginViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ namespace TIDALDL_UI.Pages
public class LoginViewModel : ModelBase
{
public bool BtnLoginEnable { get; set; } = true;
public bool HaveInit { get; set; } = false;
public TidalDeviceCode DeviceCode { get; set; }
public UserSettings Settings { get; set; } = UserSettings.Read();
private IWindowManager Manager;
Expand All @@ -34,6 +35,10 @@ public LoginViewModel(IWindowManager manager, MainViewModel vmmain)

protected override async void OnViewLoaded()
{
if (HaveInit)
return;
HaveInit = true;

BtnLoginEnable = false;

//Proxy
Expand Down

0 comments on commit c7a42bf

Please sign in to comment.