Skip to content

Commit fa4f665

Browse files
author
Alexandru Macocian
committed
Fixed a bug with updating account details.
1 parent e59e022 commit fa4f665

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Daybreak/Controls/AccountTemplate.xaml.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,19 @@ private void BinButton_Clicked(object sender, EventArgs e)
6767
private void UsernameTextbox_TextChanged(object sender, EventArgs e)
6868
{
6969
this.Username = sender.As<TextBox>()?.Text;
70+
this.DataContext.As<LoginCredentials>().Username = this.Username;
7071
}
7172

7273
private void CharacterNameTextbox_TextChanged(object sender, EventArgs e)
7374
{
7475
this.CharacterName = sender.As<TextBox>()?.Text;
76+
this.DataContext.As<LoginCredentials>().CharacterName = this.CharacterName;
7577
}
7678

7779
private void Passwordbox_PasswordChanged(object sender, EventArgs e)
7880
{
7981
this.Password = sender.As<PasswordBox>()?.Password;
82+
this.DataContext.As<LoginCredentials>().Password = this.Password;
8083
}
8184

8285
private void StarGlyph_Clicked(object sender, EventArgs e)

Daybreak/Daybreak.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<CopyLocalLockFileAssemblies>false</CopyLocalLockFileAssemblies>
1010
<LangVersion>preview</LangVersion>
1111
<ApplicationIcon>Daybreak.ico</ApplicationIcon>
12-
<Version>0.5.0</Version>
12+
<Version>0.5.1</Version>
1313
<ApplicationManifest>app.manifest</ApplicationManifest>
1414
</PropertyGroup>
1515

0 commit comments

Comments
 (0)