Skip to content

Commit

Permalink
file not found fix
Browse files Browse the repository at this point in the history
  • Loading branch information
cadaei committed Apr 29, 2020
1 parent c9db1b4 commit 6d1e74a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions ARKBreedingStats.sln.DotSettings
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@
<s:String x:Key="/Default/CodeStyle/CodeFormatting/CSharpFormat/TYPE_DECLARATION_BRACES/@EntryValue">NEXT_LINE</s:String>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpKeepExistingMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpPlaceEmbeddedOnSameLineMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ECSharpUseContinuousIndentInsideBracesMigration/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/Environment/SettingsMigration/IsMigratorApplied/=JetBrains_002EReSharper_002EPsi_002ECSharp_002ECodeStyle_002ESettingsUpgrade_002EMigrateBlankLinesAroundFieldToBlankLinesAroundProperty/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
7 changes: 4 additions & 3 deletions ARKBreedingStats/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3345,10 +3345,11 @@ private void openJsonDataFolderToolStripMenuItem_Click(object sender, EventArgs
private void ReloadNamePatternCustomReplacings(PatternEditor pe = null)
{
string filePath = FileService.GetJsonPath(FileService.CustomReplacingsNamePattern);
if (!FileService.LoadJSONFile(filePath, out customReplacingsNamingPattern, out string error))
string errorMessage = null;
if (!File.Exists(filePath) || !FileService.LoadJSONFile(filePath, out customReplacingsNamingPattern, out errorMessage))
{
if (!string.IsNullOrEmpty(error))
MessageBox.Show(error, "ASB Custom replacings file loading error", MessageBoxButtons.OK, MessageBoxIcon.Error);
if (!string.IsNullOrEmpty(errorMessage))
MessageBox.Show(errorMessage, "ASB Custom replacings file loading error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else if (pe != null) pe.SetCustomReplacings(customReplacingsNamingPattern);
}
Expand Down
2 changes: 1 addition & 1 deletion ARKBreedingStats/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("0.39.5.0")]
[assembly: AssemblyFileVersion("0.39.5.1")]
[assembly: NeutralResourcesLanguage("en")]

0 comments on commit 6d1e74a

Please sign in to comment.