Skip to content

Commit

Permalink
Fixed wrong selection after saving an Import Profile #172
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAxelander committed Sep 8, 2023
1 parent 00f2360 commit 98538ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
* [Fixed] Sqlite Database locked while using "Distribute Budget" [#171](https://github.com/TheAxelander/OpenBudgeteer/issues/171)
* [Fixed] Missing Unicode support for Import [#163](https://github.com/TheAxelander/OpenBudgeteer/issues/163)
* [Fixed] Error message closes Modal Dialog for Create/Edit Bucket [#170](https://github.com/TheAxelander/OpenBudgeteer/issues/170)
* [Fixed] Wrong selection after saving an Import Profile [#172](https://github.com/TheAxelander/OpenBudgeteer/issues/172)

### 1.6.3 (2023-01-27)

Expand Down
2 changes: 0 additions & 2 deletions OpenBudgeteer.Core/ViewModels/ImportDataViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -706,8 +706,6 @@ public ViewModelOperationResult SaveProfile()

using var dbContext = new DatabaseContext(_dbOptions);
dbContext.UpdateImportProfile(SelectedImportProfile);
LoadAvailableProfiles();
SelectedImportProfile = AvailableImportProfiles.First(i => i.ImportProfileId == SelectedImportProfile.ImportProfileId);

return new ViewModelOperationResult(true);
}
Expand Down

0 comments on commit 98538ee

Please sign in to comment.