Skip to content

Commit

Permalink
Merge pull request #24 from kksboltibay/test
Browse files Browse the repository at this point in the history
Fix update local settings bug
  • Loading branch information
kksboltibay committed Feb 17, 2022
2 parents a5d23b6 + 84602cb commit 022057e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion UPOSS/LocalDatabase/SQLiteDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ public async Task LoadLocalSettings()
Properties.Settings.Default.Save();

// change back to default value
command.CommandText = "UPDATE users SET id = @id, address = @address, phone_no = @phone_no, gov_charge_name = @gov_charge_name, gov_charge_value = @gov_charge_value, gov_charge_no = @gov_charge_no, sacnner_is_used = @sacnner_is_used, is_first_login = @is_first_login, is_update = @is_update";
command.CommandText = "UPDATE settings SET id = @id, address = @address, phone_no = @phone_no, gov_charge_name = @gov_charge_name, gov_charge_value = @gov_charge_value, gov_charge_no = @gov_charge_no, sacnner_is_used = @sacnner_is_used, is_first_login = @is_first_login, is_update = @is_update";
command.Parameters.AddWithValue("@id", 1);
command.Parameters.AddWithValue("@address", "-");
command.Parameters.AddWithValue("@phone_no", "-");
Expand Down
6 changes: 3 additions & 3 deletions UPOSS/UPOSS.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<UseWPF>true</UseWPF>
<NeutralLanguage>en</NeutralLanguage>
<Description>UPOSS</Description>
<AssemblyVersion>1.0.9.0</AssemblyVersion>
<FileVersion>1.0.9.0</FileVersion>
<Version>1.0.9</Version>
<AssemblyVersion>1.0.10.0</AssemblyVersion>
<FileVersion>1.0.10.0</FileVersion>
<Version>1.0.10</Version>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit 022057e

Please sign in to comment.