Commits

HexRx  committed c53f272

Initial status on the basis of auth

  • Participants
  • Parent commits 359f1b4

Comments (0)

Files changed (1)

File KPDataSave/Forms/StateControl.cs

             _signInState = new SignIn(this);
             _acceptState = new Accept(this);
             _selectFolder = new SelectFolder(this);
+
+            AccountState accountState = AccountState.Deserialize(host);
             // Начальное состояние
-            SetState(SignInState);
+            SetState(accountState == null ? SignInState : new SignOut(this));
         }
 
         // Установка состояния