1 cef放到后面启动后dpi不对问题暂时回避(最先启动,如果切换pdd temu则重启软件)
2 上货发货时间统一改成48销售
This commit is contained in:
1 parent
5030a874ea
commit
caf8ba3fe8
7 files changed
+193
-169
No files matched your search
+24
-5
@@ -62,15 +62,20 @@ namespace TemuKJD
|
||||
{
|
||||
btnOK.Visible = true;
|
||||
}));
|
||||
|
||||
#if DEBUG
|
||||
Thread.Sleep(2500);
|
||||
#else
|
||||
if (File.Exists(System.Environment.CurrentDirectory + "\\YkdChoice.dll"))
|
||||
{
|
||||
Thread.Sleep(2500);
|
||||
}
|
||||
#endif
|
||||
if (initFormSettings.Remember)
|
||||
Thread.Sleep(500);
|
||||
Invoke(new Action(() =>
|
||||
{
|
||||
if(initFormSettings.Remember)
|
||||
if(initFormSettings.Remember && isChangeType == false)
|
||||
{
|
||||
OpenNewMainForm();
|
||||
}
|
||||
@@ -108,7 +113,8 @@ namespace TemuKJD
|
||||
|
||||
private void btnOK_Click(object sender, EventArgs e)
|
||||
{
|
||||
OpenNewMainForm();
|
||||
if (isChangeType == false)
|
||||
OpenNewMainForm();
|
||||
}
|
||||
|
||||
private void chkRemember_CheckedChanged(object sender, EventArgs e)
|
||||
@@ -117,13 +123,26 @@ namespace TemuKJD
|
||||
ConfigHelper.SaveConfig("initFormSettings", initFormSettings);
|
||||
}
|
||||
|
||||
bool isChangeType = false;
|
||||
private void rbTemu_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
string newLoginType;
|
||||
if (rbTemu.Checked)
|
||||
initFormSettings.LoginType = "Temu";
|
||||
newLoginType = "Temu";
|
||||
else
|
||||
initFormSettings.LoginType = "Pdd";
|
||||
ConfigHelper.SaveConfig("initFormSettings", initFormSettings);
|
||||
newLoginType = "Pdd";
|
||||
if (initFormSettings.LoginType != newLoginType)
|
||||
{
|
||||
isChangeType = true;
|
||||
initFormSettings.LoginType = newLoginType;
|
||||
ConfigHelper.SaveConfig("initFormSettings", initFormSettings);
|
||||
|
||||
BaseMsgForm.ShowInfo("更改了平台,需要重新启动");
|
||||
{
|
||||
System.Diagnostics.Process.Start(Process.GetCurrentProcess().MainModule.FileName);
|
||||
Application.Exit();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user