Remove restore location on startup

pull/2556/head
2dust 2 years ago
parent 3275454bd6
commit 95794bc5b2

@ -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;

Loading…
Cancel
Save