mirror of
https://github.com/jie65535/GrasscutterCommandGenerator.git
synced 2025-12-16 10:32:58 +08:00
Update version to 1.0.1
Try compatible high DPI screens Fix Host setting not saved
This commit is contained in:
@@ -60,15 +60,17 @@ namespace GrasscutterTools
|
||||
{
|
||||
try
|
||||
{
|
||||
ChkAutoCopy.Checked = Settings.Default.AutoCopy;
|
||||
NUDUid.Value = Settings.Default.Uid;
|
||||
ChkAutoCopy.Checked = Settings.Default.AutoCopy;
|
||||
NUDUid.Value = Settings.Default.Uid;
|
||||
|
||||
CmbLanguage.Items.AddRange(LanguageNames);
|
||||
CmbLanguage.SelectedIndex = Array.IndexOf(Languages, Settings.Default.DefaultLanguage);
|
||||
|
||||
NUDRemotePlayerId.Value = Settings.Default.RemoteUid;
|
||||
TxtHost.Text = Settings.Default.Host;
|
||||
|
||||
InitGiveItemRecord();
|
||||
InitSpawnRecord();
|
||||
InitOpenCommand();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -80,13 +82,14 @@ namespace GrasscutterTools
|
||||
{
|
||||
try
|
||||
{
|
||||
Settings.Default.AutoCopy = ChkAutoCopy.Checked;
|
||||
Settings.Default.Uid = NUDUid.Value;
|
||||
Settings.Default.Save();
|
||||
Settings.Default.AutoCopy = ChkAutoCopy.Checked;
|
||||
Settings.Default.Uid = NUDUid.Value;
|
||||
Settings.Default.RemoteUid = NUDRemotePlayerId.Value;
|
||||
Settings.Default.Host = TxtHost.Text;
|
||||
SaveCustomCommands();
|
||||
SaveGiveItemRecord();
|
||||
SaveSpawnRecord();
|
||||
SaveOpenCommand();
|
||||
Settings.Default.Save();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -926,18 +929,6 @@ namespace GrasscutterTools
|
||||
|
||||
#region - 远程 -
|
||||
|
||||
private void InitOpenCommand()
|
||||
{
|
||||
NUDRemotePlayerId.Value = Settings.Default.RemoteUid;
|
||||
TxtHost.Text = Settings.Default.Host;
|
||||
}
|
||||
|
||||
private void SaveOpenCommand()
|
||||
{
|
||||
Settings.Default.RemoteUid = NUDRemotePlayerId.Value;
|
||||
Settings.Default.Host = TxtHost.Text;
|
||||
}
|
||||
|
||||
private OpenCommandAPI OC;
|
||||
|
||||
private async void BtnQueryServerStatus_Click(object sender, EventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user