Remove restore location on startup

pull/2556/head
2dust 2022-08-12 20:24:52 +08:00
parent 3275454bd6
commit 95794bc5b2
1 changed files with 12 additions and 12 deletions

View File

@ -158,18 +158,18 @@ namespace v2rayN.Forms
{
scServers.Panel2Collapsed = true;
if (!config.uiItem.mainLocation.IsEmpty)
{
if (config.uiItem.mainLocation.X >= SystemInformation.WorkingArea.Width
|| config.uiItem.mainLocation.Y >= SystemInformation.WorkingArea.Height)
{
Location = new Point(0, 0);
}
else
{
Location = config.uiItem.mainLocation;
}
}
//if (!config.uiItem.mainLocation.IsEmpty)
//{
// if (config.uiItem.mainLocation.X >= SystemInformation.WorkingArea.Width
// || config.uiItem.mainLocation.Y >= SystemInformation.WorkingArea.Height)
// {
// Location = new Point(0, 0);
// }
// else
// {
// Location = config.uiItem.mainLocation;
// }
//}
if (!config.uiItem.mainSize.IsEmpty)
{
Width = config.uiItem.mainSize.Width;