Fix notifyicon maxlength issue

pull/2500/head
2dust 2022-07-24 20:38:56 +08:00
parent 99fa98844c
commit 61b7997ae9
3 changed files with 5 additions and 3 deletions

View File

@ -1082,7 +1082,7 @@ namespace v2rayN.Forms
/// <param name="msg"></param>
private void notifyMsg(string msg)
{
notifyMain.Text = msg;
notifyMain.Text = (msg.Length <= 63 ? msg : msg.Substring(1, 63));
}
#endregion

View File

@ -81,7 +81,8 @@ namespace v2rayN.Handler
Utils.ToJsonFile(v2rayConfig, fileName, false);
msg = string.Format(ResUI.SuccessfulConfiguration, $"[{config.GetGroupRemarks(node.groupId)}] {node.GetSummary()}");
//msg = string.Format(ResUI.SuccessfulConfiguration, $"[{config.GetGroupRemarks(node.groupId)}] {node.GetSummary()}");
msg = string.Format(ResUI.SuccessfulConfiguration, "");
}
catch (Exception ex)
{

View File

@ -57,7 +57,8 @@ namespace v2rayN.Handler
}
else
{
ShowMsg(true, msg);
ShowMsg(false, msg);
ShowMsg(true, $"[{config.GetGroupRemarks(item.groupId)}] {item.GetSummary()}");
V2rayRestart();
}
}