Skip to content

Commit

Permalink
fix inexistent directory exception on start
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex P committed Jun 26, 2018
1 parent 16a910c commit ac13cfe
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions TopoDroidTranslator/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ private void MainForm_Load(object sender, EventArgs e)
if (config.AppSettings.Settings["LanguageCode"] != null)
confLanguageCode = config.AppSettings.Settings["LanguageCode"].Value;

OpenSymbolsDirectory(symbolsDirectory);
if (Directory.Exists(symbolsDirectory))
OpenSymbolsDirectory(symbolsDirectory);
}
catch (Exception ex)
{
Expand Down Expand Up @@ -301,7 +302,7 @@ void OpenFileWithEditor(int rowIndex)
private void updateFilesButton_Click(object sender, EventArgs e)
{

if (MessageBox.Show("This tool is experimental and may lead to information loss. Please backup your repository file before going forward. Continue modifying the files?", GlobalContext.ApplicationTitle, MessageBoxButtons.OKCancel) == DialogResult.Cancel)
if (MessageBox.Show("This tool is experimental and may lead to information loss. Please backup your repository files before going forward. Continue modifying the files?", GlobalContext.ApplicationTitle, MessageBoxButtons.OKCancel) == DialogResult.Cancel)
{

return;
Expand Down
Binary file modified TopoDroidTranslator/bin/Debug/TopoDroidTranslator.exe
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<appSettings>
<add key="SymbolsDirectory" value="" />
<add key="SymbolsDirectory" value="D:\projects\topodroid\symbols-git" />
<add key="LanguageCode" value="ro" />
</appSettings>
<startup>
Expand Down
Binary file modified TopoDroidTranslator/bin/Debug/TopoDroidTranslator.pdb
Binary file not shown.
Binary file modified TopoDroidTranslator/obj/Debug/TopoDroidTranslator.exe
Binary file not shown.
Binary file modified TopoDroidTranslator/obj/Debug/TopoDroidTranslator.pdb
Binary file not shown.

0 comments on commit ac13cfe

Please sign in to comment.