Skip to content

Commit

Permalink
Remove Reload Mode MenuToolStrip
Browse files Browse the repository at this point in the history
  • Loading branch information
chsbuffer committed Mar 23, 2021
1 parent 9a3a1e3 commit 8e545fc
Show file tree
Hide file tree
Showing 3 changed files with 191 additions and 75 deletions.
112 changes: 58 additions & 54 deletions Netch/Forms/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

22 changes: 1 addition & 21 deletions Netch/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -266,25 +266,6 @@ private void CreateProcessModeToolStripButton_Click(object sender, EventArgs e)
Show();
}

private void ReloadModesToolStripMenuItem_Click(object sender, EventArgs e)
{
Enabled = false;
try
{
ModeHelper.Load();
LoadModes();
NotifyTip(i18N.Translate("Modes have been reload"));
}
catch (Exception)
{
// ignored
}
finally
{
Enabled = true;
}
}

#endregion

#region Subscription
Expand Down Expand Up @@ -1126,8 +1107,7 @@ void StartDisableItems(bool enabled)
// 启动需要禁用的控件
UninstallServiceToolStripMenuItem.Enabled = UpdateACLToolStripMenuItem.Enabled = updateACLWithProxyToolStripMenuItem.Enabled =
updatePACToolStripMenuItem.Enabled = UpdateServersFromSubscribeLinksToolStripMenuItem.Enabled =
UpdateServersFromSubscribeLinksWithProxyToolStripMenuItem.Enabled = UninstallTapDriverToolStripMenuItem.Enabled =
ReloadModesToolStripMenuItem.Enabled = enabled;
UpdateServersFromSubscribeLinksWithProxyToolStripMenuItem.Enabled = UninstallTapDriverToolStripMenuItem.Enabled = enabled;
}

_state = value;
Expand Down
Loading

0 comments on commit 8e545fc

Please sign in to comment.