mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-03 13:48:52 +00:00
Remember the information filter
This commit is contained in:
parent
ffa2acb2f5
commit
6d5e02860e
2 changed files with 13 additions and 1 deletions
|
@ -26,7 +26,11 @@ namespace v2rayN.Forms
|
||||||
|
|
||||||
private void MainMsgControl_Load(object sender, EventArgs e)
|
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 提示信息
|
#region 提示信息
|
||||||
|
@ -188,6 +192,7 @@ namespace v2rayN.Forms
|
||||||
{
|
{
|
||||||
_msgFilter = fm.MsgFilter;
|
_msgFilter = fm.MsgFilter;
|
||||||
gbMsgTitle.Text = string.Format(ResUI.MsgInformationTitle, _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
|
#endregion
|
||||||
|
|
||||||
#region 测速
|
#region 测速
|
||||||
|
|
Loading…
Reference in a new issue