Skip to content

Commit

Permalink
1.0 Beta 4 (hotfix 1): Fix crash on service uninstall
Browse files Browse the repository at this point in the history
  • Loading branch information
Sparronator9999 committed Jan 5, 2025
1 parent 56ac5c1 commit 2716c9d
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 8 deletions.
2 changes: 1 addition & 1 deletion YAMDCC.Common/YAMDCC.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<TargetFramework>net48</TargetFramework>
<Title>YAMDCC common code library</Title>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>beta.4</VersionSuffix>
<VersionSuffix>beta.4-hotfix.1</VersionSuffix>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DebugType>none</DebugType>
Expand Down
2 changes: 1 addition & 1 deletion YAMDCC.Config/YAMDCC.Config.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<TargetFramework>net48</TargetFramework>
<Title>YAMDCC config library</Title>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>beta.4</VersionSuffix>
<VersionSuffix>beta.4-hotfix.1</VersionSuffix>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DebugType>none</DebugType>
Expand Down
8 changes: 7 additions & 1 deletion YAMDCC.ConfigEditor/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,13 @@ private void MainWindow_Closing(object sender, FormClosingEventArgs e)
SendServiceMessage(new ServiceCommand(Command.FullBlast, "0"));
}
GlobalConfig.App = "YAMDCC";
GlobalConfig.Save();
try
{
GlobalConfig.Save();
}
// ignore DirectoryNotFoundException, since we probably closed the
// window due to uninstalling with data directory delete enabled
catch (DirectoryNotFoundException) { }
}

private void OnProcessExit(object sender, EventArgs e)
Expand Down
2 changes: 1 addition & 1 deletion YAMDCC.ConfigEditor/YAMDCC.ConfigEditor.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<Title>YAMDCC configuration utility</Title>
<UseWindowsForms>true</UseWindowsForms>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>beta.4</VersionSuffix>
<VersionSuffix>beta.4-hotfix.1</VersionSuffix>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DebugType>none</DebugType>
Expand Down
2 changes: 1 addition & 1 deletion YAMDCC.ECAccess/YAMDCC.ECAccess.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<TargetFramework>net48</TargetFramework>
<Title>YAMDCC EC access library</Title>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>beta.4</VersionSuffix>
<VersionSuffix>beta.4-hotfix.1</VersionSuffix>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DebugType>none</DebugType>
Expand Down
2 changes: 1 addition & 1 deletion YAMDCC.ECInspector/YAMDCC.ECInspector.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<Title>YAMDCC EC inspector</Title>
<UseWindowsForms>true</UseWindowsForms>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>beta.4</VersionSuffix>
<VersionSuffix>beta.4-hotfix.1</VersionSuffix>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DebugType>none</DebugType>
Expand Down
2 changes: 1 addition & 1 deletion YAMDCC.Logs/YAMDCC.Logs.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<TargetFramework>net48</TargetFramework>
<Title>YAMDCC logging library</Title>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>beta.4</VersionSuffix>
<VersionSuffix>beta.4-hotfix.1</VersionSuffix>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
<DebugType>none</DebugType>
Expand Down
2 changes: 1 addition & 1 deletion YAMDCC.Service/YAMDCC.Service.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<TargetFramework>net48</TargetFramework>
<Title>YAMDCC helper service</Title>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>beta.4</VersionSuffix>
<VersionSuffix>beta.4-hotfix.1</VersionSuffix>
<ApplicationManifest>app.manifest</ApplicationManifest>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)'=='Release'">
Expand Down

0 comments on commit 2716c9d

Please sign in to comment.