Disable new world button, fix crash opening plugin folder

This commit is contained in:
John Gross
2018-02-21 17:19:33 -08:00
parent a2acb9c11c
commit e242ed6f1f
4 changed files with 7 additions and 3 deletions

View File

@@ -54,7 +54,8 @@ namespace Torch.Server.Views
private void OpenFolder_OnClick(object sender, RoutedEventArgs e)
{
Process.Start("explorer.exe", _plugins.PluginDir);
if (_plugins?.PluginDir != null)
Process.Start(_plugins.PluginDir);
}
}
}