mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-02 21:28:51 +00:00
Fix notifyicon maxlength issue
This commit is contained in:
parent
99fa98844c
commit
61b7997ae9
3 changed files with 5 additions and 3 deletions
|
@ -1082,7 +1082,7 @@ namespace v2rayN.Forms
|
||||||
/// <param name="msg"></param>
|
/// <param name="msg"></param>
|
||||||
private void notifyMsg(string msg)
|
private void notifyMsg(string msg)
|
||||||
{
|
{
|
||||||
notifyMain.Text = msg;
|
notifyMain.Text = (msg.Length <= 63 ? msg : msg.Substring(1, 63));
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
@ -81,7 +81,8 @@ namespace v2rayN.Handler
|
||||||
|
|
||||||
Utils.ToJsonFile(v2rayConfig, fileName, false);
|
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)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -57,7 +57,8 @@ namespace v2rayN.Handler
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
ShowMsg(true, msg);
|
ShowMsg(false, msg);
|
||||||
|
ShowMsg(true, $"[{config.GetGroupRemarks(item.groupId)}] {item.GetSummary()}");
|
||||||
V2rayRestart();
|
V2rayRestart();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue