Skip to content

Commit 15e594e

Browse files
author
Hiram
committed
modify path setting
1 parent 86e88e2 commit 15e594e

13 files changed

+4
-3
lines changed
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

HiProtobuf/HiProtobuf.UI/Config.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ internal static void Load()
2626
Settings.Export_Folder = pathCfg.Export_Folder;
2727
Settings.Excel_Folder = pathCfg.Excel_Folder;
2828
Settings.Compiler_Path = pathCfg.Compiler_Path;
29+
stream.Close();
2930
}
3031
}
3132

HiProtobuf/HiProtobuf.UI/HiProtobuf.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ public partial class HiProtobuf : Form
1717
public HiProtobuf()
1818
{
1919
InitializeComponent();
20-
if (string.IsNullOrEmpty(Settings.Export_Folder)) textBox1.Text = Settings.Export_Folder;
21-
if (string.IsNullOrEmpty(Settings.Excel_Folder)) textBox2.Text = Settings.Excel_Folder;
22-
if (string.IsNullOrEmpty(Settings.Compiler_Path)) textBox5.Text = Settings.Compiler_Path;
20+
if (!string.IsNullOrEmpty(Settings.Export_Folder)) textBox1.Text = Settings.Export_Folder;
21+
if (!string.IsNullOrEmpty(Settings.Excel_Folder)) textBox2.Text = Settings.Excel_Folder;
22+
if (!string.IsNullOrEmpty(Settings.Compiler_Path)) textBox5.Text = Settings.Compiler_Path;
2323
}
2424

2525
private void Form1_Load(object sender, EventArgs e)
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)