Skip to content

Commit

Permalink
Asynchronously write text.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nihlus committed Mar 8, 2024
1 parent d6f11e2 commit 5d59d20
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Launchpad.Utilities/Interface/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ private async void OnGenerateGameManifestButtonClicked(object sender, EventArgs
if (dialog.Run() == (int) ResponseType.Yes)
{
var gameVersionPath = SysPath.Combine(targetDirectory, "GameVersion.txt");
File.WriteAllText(gameVersionPath, new Version("1.0.0").ToString());

dialog.Destroy();
await File.WriteAllTextAsync(gameVersionPath, new Version("1.0.0").ToString());
}
else
{
Expand Down

0 comments on commit 5d59d20

Please sign in to comment.