Merge pull request #253 from henning724/master

提醒用户查看日志目录+配置数为0时,隐藏配置界面
This commit is contained in:
Amazing_DM
2020-03-20 16:15:08 +08:00
committed by GitHub
3 changed files with 11 additions and 1 deletions

View File

@@ -467,6 +467,7 @@ namespace Netch.Forms
this.ControlButton.Text = "Start";
this.ControlButton.UseVisualStyleBackColor = true;
this.ControlButton.Click += new System.EventHandler(this.ControlButton_Click);
this.ControlButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
//
// NotifyIcon
//
@@ -509,6 +510,7 @@ namespace Netch.Forms
this.SettingsButton.Text = "Settings";
this.SettingsButton.UseVisualStyleBackColor = true;
this.SettingsButton.Click += new System.EventHandler(this.SettingsButton_Click);
this.SettingsButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
//
// ProfileGroupBox
//

View File

@@ -1099,6 +1099,14 @@ namespace Netch.Forms
public void InitProfile()
{
var num_profile = Global.Settings.ProfileCount;
if (num_profile == 0)
{
ProfileGroupBox.Size = new Size(0,0);
ConfigurationGroupBox.Size -= new Size(0, 30);
this.Size -= new Size(0, 70 + 30);
return;
}
ProfileTable.ColumnCount = num_profile;
while (Global.Settings.profiles.Count < num_profile)

View File

@@ -12,7 +12,7 @@
"Stop": "停止",
"Waiting for command": "等待命令中",
"Starting": "正在启动中",
"Start failed": "启动失败",
"Start failed": "启动失败请打开软件目录logging文件夹查看日志",
"Started": "已启动",
"Stopping": "正在停止中",
"Stopped": "已停止",