From 95794bc5b27f8a8184134b13162b00dec26ea7cb Mon Sep 17 00:00:00 2001 From: 2dust <31833384+2dust@users.noreply.github.com> Date: Fri, 12 Aug 2022 20:24:52 +0800 Subject: [PATCH] Remove restore location on startup --- v2rayN/v2rayN/Forms/MainForm.cs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/v2rayN/v2rayN/Forms/MainForm.cs b/v2rayN/v2rayN/Forms/MainForm.cs index e9edeb65..7ba19c28 100644 --- a/v2rayN/v2rayN/Forms/MainForm.cs +++ b/v2rayN/v2rayN/Forms/MainForm.cs @@ -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;