Skip to content

Commit

Permalink
Fix crash if application in Add App menu doesn't exist.
Browse files Browse the repository at this point in the history
  • Loading branch information
Sewer56 committed May 23, 2020
1 parent a5eb01f commit 4fe6fa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
using System;
using System.Collections.Specialized;
using System.ComponentModel;
using System.IO;
using System.Windows.Input;
using Reloaded.Mod.Launcher.Commands.Templates;
using Reloaded.Mod.Launcher.Models.Model;
Expand Down Expand Up @@ -72,7 +73,7 @@ private void LocationPropertyChanged(object sender, PropertyChangedEventArgs e)
/* ICommand */
public bool CanExecute(object parameter)
{
if (Deployer != null)
if (Deployer != null && File.Exists(Deployer.Application.Config.AppLocation))
return Deployer.CanDeploy();

return false;
Expand Down
2 changes: 1 addition & 1 deletion Source/Reloaded.Mod.Launcher/Reloaded.Mod.Launcher.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<UseWPF>true</UseWPF>
<AssemblyName>Reloaded-II</AssemblyName>
<RootNamespace>Reloaded.Mod.Launcher</RootNamespace>
<Version>1.5.2</Version>
<Version>1.5.3</Version>
<Copyright>Sewer56 ~ $([System.DateTime]::UtcNow.Year) | Build: $([System.DateTime]::UtcNow.ToString("s"))</Copyright>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<ApplicationIcon>appicon.ico</ApplicationIcon>
Expand Down

0 comments on commit 4fe6fa6

Please sign in to comment.