Skip to content

Commit

Permalink
Fix app crash #327 (#367)
Browse files Browse the repository at this point in the history
Co-authored-by: BornToBeRoot <BornToBeRoot@users.noreply.github.com>
  • Loading branch information
BornToBeRoot and BornToBeRoot committed Nov 15, 2020
1 parent fec675a commit 154c95f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Source/NETworkManager/ViewModels/AboutViewModel.cs
Expand Up @@ -163,7 +163,7 @@ private void CheckForUpdatesAction()

private static void OpenWebsiteAction(object url)
{
ExternalProcessStarter.OpenUrl((string)url);
ExternalProcessStarter.OpenUrl((string)url);
}

public ICommand OpenDocumentationCommand
Expand All @@ -180,7 +180,7 @@ private void OpenDocumentationAction()

private void OpenLicenseFolderAction()
{
OpenLicenseFolder();
Process.Start("explorer.exe", LibraryManager.GetLicenseLocation());
}
#endregion

Expand All @@ -200,8 +200,6 @@ private void CheckForUpdates()

updater.CheckOnGitHub(Properties.Resources.NETworkManager_GitHub_User, Properties.Resources.NETworkManager_GitHub_Repo, AssemblyManager.Current.Version);
}

public void OpenLicenseFolder() => Process.Start(LibraryManager.GetLicenseLocation());
#endregion

#region Events
Expand All @@ -220,7 +218,7 @@ private void Updater_NoUpdateAvailable(object sender, EventArgs e)
IsUpdateCheckRunning = false;
ShowUpdaterMessage = true;
}

private void Updater_Error(object sender, EventArgs e)
{
UpdaterMessage = Strings.ErrorCheckingApiGithubComVerifyYourNetworkConnection;
Expand Down

0 comments on commit 154c95f

Please sign in to comment.