Skip to content

Commit

Permalink
Fix for crash on selecting default server folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
Razzmatazzz committed Mar 2, 2021
1 parent 4f3c96d commit 504c6c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,10 @@ private void CheckServerPath()
}
private void btnServerPath_Click(object sender, RoutedEventArgs e)
{
var serverpath = new FileInfo(txtServerPath.Text).Directory.FullName;
var serverpath = "";
if (txtServerPath.Text != "") {
serverpath = new FileInfo(txtServerPath.Text).Directory.FullName;
}
var openFolderDialog = new System.Windows.Forms.FolderBrowserDialog();
if (Directory.Exists(serverpath))
{
Expand Down
6 changes: 3 additions & 3 deletions ValheimServerWarden.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@
<UseWPF>true</UseWPF>
<UseWindowsForms>true</UseWindowsForms>
<StartupObject>ValheimServerWarden.App</StartupObject>
<Version>0.4.5</Version>
<AssemblyVersion>0.4.5.0</AssemblyVersion>
<Version>0.4.6</Version>
<AssemblyVersion>0.4.6.0</AssemblyVersion>
<Product>ValheimServerWarden</Product>
<Authors>Razzmatazz</Authors>
<ApplicationIcon>Resources\vsw2.ico</ApplicationIcon>
<PackageId>ValheimServerWarden</PackageId>
<AssemblyName>Valheim Server Warden</AssemblyName>
<FileVersion>0.4.5.0</FileVersion>
<FileVersion>0.4.6.0</FileVersion>
<Company>ValheimServerWarden</Company>
</PropertyGroup>

Expand Down

0 comments on commit 504c6c0

Please sign in to comment.