mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-06-07 22:59:14 +08:00
Fix window location issue (#161)
This commit is contained in:
parent
2300b8d5db
commit
72ec031f8a
@ -46,11 +46,12 @@ namespace GrasscutterTools.Forms
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
var location = Settings.Default.MainFormLocation;
|
||||||
// 还原窗体位置
|
// 还原窗体位置
|
||||||
if (Settings.Default.MainFormLocation != default)
|
if (location != default && location.X >= 0 && location.Y >= 0)
|
||||||
{
|
{
|
||||||
StartPosition = FormStartPosition.Manual;
|
StartPosition = FormStartPosition.Manual;
|
||||||
Location = Settings.Default.MainFormLocation;
|
Location = location;
|
||||||
Logger.I(TAG, "Restore window location: " + Location.ToString());
|
Logger.I(TAG, "Restore window location: " + Location.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -63,8 +64,6 @@ namespace GrasscutterTools.Forms
|
|||||||
|
|
||||||
// 初始化页面
|
// 初始化页面
|
||||||
InitPages();
|
InitPages();
|
||||||
// 恢复自动复制选项状态
|
|
||||||
ChkAutoCopy.Checked = Settings.Default.AutoCopy;
|
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
@ -132,6 +131,9 @@ namespace GrasscutterTools.Forms
|
|||||||
#endif
|
#endif
|
||||||
if (DesignMode) return;
|
if (DesignMode) return;
|
||||||
|
|
||||||
|
// 恢复自动复制选项状态
|
||||||
|
ChkAutoCopy.Checked = Settings.Default.AutoCopy;
|
||||||
|
|
||||||
// 加载游戏ID资源
|
// 加载游戏ID资源
|
||||||
GameData.LoadResources();
|
GameData.LoadResources();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user