Skip to content

Commit

Permalink
Fixed file path not found dialog showing up every time
Browse files Browse the repository at this point in the history
  • Loading branch information
LambdaGaming committed Jul 28, 2021
1 parent cf53214 commit 40867a3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
if ( string.IsNullOrWhiteSpace( Properties.Settings.Default.FileName ) || !Directory.Exists( Properties.Settings.Default.FileName ) )
if ( string.IsNullOrWhiteSpace( Properties.Settings.Default.FileName ) || !File.Exists( Properties.Settings.Default.FileName ) )
{
DialogResult BrowseCheck = MessageBox.Show( "Please select the server file.", "Server file path not found.", MessageBoxButtons.OK, MessageBoxIcon.Warning );
if ( BrowseCheck == DialogResult.OK )
Expand Down
4 changes: 2 additions & 2 deletions Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion( "1.3.2" )]
[assembly: AssemblyFileVersion( "1.3.2" )]
[assembly: AssemblyVersion( "1.3.3" )]
[assembly: AssemblyFileVersion( "1.3.3" )]

0 comments on commit 40867a3

Please sign in to comment.