mirror of https://github.com/2dust/v2rayN
代码优化
parent
6dddaa03ae
commit
5a386c2802
|
@ -54,10 +54,7 @@ namespace v2rayN.Forms
|
||||||
subItem.url = string.Empty;
|
subItem.url = string.Empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (OnButtonClicked != null)
|
OnButtonClicked?.Invoke(sender, e);
|
||||||
{
|
|
||||||
OnButtonClicked(sender, e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -202,14 +202,11 @@ namespace v2rayN.Handler
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 消息委托
|
/// 消息委托
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="notify"></param>
|
/// <param name="updateToTrayTooltip">是否更新托盘图标的工具提示</param>
|
||||||
/// <param name="msg"></param>
|
/// <param name="msg">输出到日志框</param>
|
||||||
private void ShowMsg(bool notify, string msg)
|
private void ShowMsg(bool updateToTrayTooltip, string msg)
|
||||||
{
|
{
|
||||||
if (ProcessEvent != null)
|
ProcessEvent?.Invoke(updateToTrayTooltip, msg);
|
||||||
{
|
|
||||||
ProcessEvent(notify, msg);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void KillProcess(Process p)
|
private void KillProcess(Process p)
|
||||||
|
|
Loading…
Reference in New Issue