mirror of https://github.com/2dust/v2rayN
Remember the information filter
parent
ffa2acb2f5
commit
6d5e02860e
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -707,6 +707,13 @@ namespace v2rayN
|
|||
}
|
||||
}
|
||||
|
||||
public static string MainMsgFilterKey
|
||||
{
|
||||
get
|
||||
{
|
||||
return $"MainMsgFilter_{GetMD5(StartupPath())}";
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region 测速
|
||||
|
|
Loading…
Reference in New Issue