mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-06-07 22:59:14 +08:00
Fix window size record
This commit is contained in:
parent
9ee1239341
commit
d0361c29aa
@ -166,7 +166,11 @@ namespace GrasscutterTools.Forms
|
|||||||
// 记录界面状态
|
// 记录界面状态
|
||||||
Settings.Default.AutoCopy = ChkAutoCopy.Checked;
|
Settings.Default.AutoCopy = ChkAutoCopy.Checked;
|
||||||
Settings.Default.MainFormLocation = Location;
|
Settings.Default.MainFormLocation = Location;
|
||||||
Settings.Default.MainFormSize = Size;
|
// 如果命令窗口已经弹出了,则不要保存多余的高度
|
||||||
|
if (TxtCommandRunLog != null)
|
||||||
|
Settings.Default.MainFormSize = new Size(Width, Height - TxtCommandRunLogMinHeight);
|
||||||
|
else
|
||||||
|
Settings.Default.MainFormSize = Size;
|
||||||
|
|
||||||
// 保存自定义命令
|
// 保存自定义命令
|
||||||
SaveCustomCommands();
|
SaveCustomCommands();
|
||||||
|
Loading…
Reference in New Issue
Block a user