Remember the information filter

pull/2556/head
2dust 2022-08-05 20:50:58 +08:00
parent ffa2acb2f5
commit 6d5e02860e
2 changed files with 13 additions and 1 deletions

View File

@ -26,7 +26,11 @@ namespace v2rayN.Forms
private void MainMsgControl_Load(object sender, EventArgs e)
{
_msgFilter = Utils.RegReadValue(Global.MyRegPath, Utils.MainMsgFilterKey, "");
if (!Utils.IsNullOrEmpty(_msgFilter))
{
gbMsgTitle.Text = string.Format(ResUI.MsgInformationTitle, _msgFilter);
}
}
#region 提示信息
@ -188,6 +192,7 @@ namespace v2rayN.Forms
{
_msgFilter = fm.MsgFilter;
gbMsgTitle.Text = string.Format(ResUI.MsgInformationTitle, _msgFilter);
Utils.RegWriteValue(Global.MyRegPath, Utils.MainMsgFilterKey, _msgFilter);
}
}

View File

@ -707,6 +707,13 @@ namespace v2rayN
}
}
public static string MainMsgFilterKey
{
get
{
return $"MainMsgFilter_{GetMD5(StartupPath())}";
}
}
#endregion
#region 测速