Skip to content

Commit

Permalink
revert change with dispatcher from task.run
Browse files Browse the repository at this point in the history
  • Loading branch information
cricketthomas committed Aug 6, 2024
1 parent ba77a23 commit 9ea8a10
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions KeyVaultExplorer/App.axaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,12 @@ public static void CreateDesktopResources()
DatabaseEncryptedPasswordManager.SetSecret($"keyvaultexplorer_{System.Guid.NewGuid().ToString()[..6]}");


Task.Run(async () =>
{
Dispatcher.UIThread.Post(async () => {
await KvExplorerDb.OpenSqlConnection();

if (!dbExists)
KvExplorerDb.InitializeDatabase();
});
}, DispatcherPriority.Loaded);

string settingsPath = Path.Combine(Constants.LocalAppDataFolder, "settings.json");
if (!File.Exists(settingsPath))
Expand Down

0 comments on commit 9ea8a10

Please sign in to comment.