mirror of https://github.com/2dust/v2rayN
Remove restore location on startup
parent
3275454bd6
commit
95794bc5b2
|
@ -158,18 +158,18 @@ namespace v2rayN.Forms
|
||||||
{
|
{
|
||||||
scServers.Panel2Collapsed = true;
|
scServers.Panel2Collapsed = true;
|
||||||
|
|
||||||
if (!config.uiItem.mainLocation.IsEmpty)
|
//if (!config.uiItem.mainLocation.IsEmpty)
|
||||||
{
|
//{
|
||||||
if (config.uiItem.mainLocation.X >= SystemInformation.WorkingArea.Width
|
// if (config.uiItem.mainLocation.X >= SystemInformation.WorkingArea.Width
|
||||||
|| config.uiItem.mainLocation.Y >= SystemInformation.WorkingArea.Height)
|
// || config.uiItem.mainLocation.Y >= SystemInformation.WorkingArea.Height)
|
||||||
{
|
// {
|
||||||
Location = new Point(0, 0);
|
// Location = new Point(0, 0);
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
Location = config.uiItem.mainLocation;
|
// Location = config.uiItem.mainLocation;
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
if (!config.uiItem.mainSize.IsEmpty)
|
if (!config.uiItem.mainSize.IsEmpty)
|
||||||
{
|
{
|
||||||
Width = config.uiItem.mainSize.Width;
|
Width = config.uiItem.mainSize.Width;
|
||||||
|
|
Loading…
Reference in New Issue