Skip to content

Commit

Permalink
Fixed a bug with updating account details.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandru Macocian committed Apr 13, 2021
1 parent e59e022 commit fa4f665
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions Daybreak/Controls/AccountTemplate.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,19 @@ private void BinButton_Clicked(object sender, EventArgs e)
private void UsernameTextbox_TextChanged(object sender, EventArgs e)
{
this.Username = sender.As<TextBox>()?.Text;
this.DataContext.As<LoginCredentials>().Username = this.Username;
}

private void CharacterNameTextbox_TextChanged(object sender, EventArgs e)
{
this.CharacterName = sender.As<TextBox>()?.Text;
this.DataContext.As<LoginCredentials>().CharacterName = this.CharacterName;
}

private void Passwordbox_PasswordChanged(object sender, EventArgs e)
{
this.Password = sender.As<PasswordBox>()?.Password;
this.DataContext.As<LoginCredentials>().Password = this.Password;
}

private void StarGlyph_Clicked(object sender, EventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion Daybreak/Daybreak.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
<LangVersion>preview</LangVersion>
<ApplicationIcon>Daybreak.ico</ApplicationIcon>
<Version>0.5.0</Version>
<Version>0.5.1</Version>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>

Expand Down

0 comments on commit fa4f665

Please sign in to comment.