Skip to content

Commit

Permalink
Cleanup code & use readonly variables instead of getters in Resources.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aetopia committed Jun 19, 2024
1 parent 7f85dab commit 9f98cfd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1,391 deletions.
2 changes: 1 addition & 1 deletion src/DungeonsUpdater.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<ApplicationManifest>Resources/.manifest</ApplicationManifest>
<ApplicationIcon>Resources/.ico</ApplicationIcon>

<AssemblyVersion>1.1.2.0</AssemblyVersion>
<AssemblyVersion>1.1.3.0</AssemblyVersion>
<AssemblyTitle>Dungeons Updater</AssemblyTitle>
<Product>Dungeons Updater</Product>
<Copyright>Copyright (C) 2024</Copyright>
Expand Down
6 changes: 3 additions & 3 deletions src/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ file static class Resources
{
static readonly Assembly assembly = Assembly.GetExecutingAssembly();

internal static string Dungeons => ToString("Dungeons.svg");
internal static readonly string Dungeons = ToString("Dungeons.svg");

internal static ImageSource Icon => ToImageSource(".ico");
internal static readonly ImageSource Icon = ToImageSource(".ico");

static ImageSource ToImageSource(string name)
{
Expand Down Expand Up @@ -144,7 +144,7 @@ internal MainWindow()
textBlock1.Text = "Downloading...";
});

ContentRendered += async (sender, e) => await Task.Run(() =>
ContentRendered += (sender, e) => Task.Run(() =>
{
var artifacts = Dungeons.Get();
IList<IArtifact> files = [];
Expand Down
Loading

0 comments on commit 9f98cfd

Please sign in to comment.