diff --git a/MainForm.Designer.cs b/MainForm.Designer.cs index 4faf45e..81017a7 100644 --- a/MainForm.Designer.cs +++ b/MainForm.Designer.cs @@ -185,7 +185,7 @@ namespace steam_token this.MinimizeBox = false; this.Name = "MainForm"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "Steam令牌计算器"; + this.Text = "Steam令牌计算器 v1.0"; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.mainForm_FormClosed); this.menuStrip.ResumeLayout(false); this.menuStrip.PerformLayout(); diff --git a/MainForm.cs b/MainForm.cs index 488147b..452d703 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -23,13 +23,12 @@ namespace steam_token ConfigUtil.Init(new Config()); InitializeComponent(); - this.timer_time.Start(); - while (!ConfigUtil.INIT_SUCCESS) { CheckConfig(); } + this.timer_time.Start(); // 新开一个线程去初始化数据 SteamGuardCalcThread.StartThread(this.label_guard, this.progressBar_refresh); } diff --git a/Util/CommonUtil.cs b/Util/CommonUtil.cs index 4f5ea4d..307ce9c 100644 --- a/Util/CommonUtil.cs +++ b/Util/CommonUtil.cs @@ -11,6 +11,7 @@ namespace steam_token.Util public class CommonUtil { + public static bool FIRST_ENABLE = true; public static Config GetConfig() { return ConfigUtil.Read(); diff --git a/Util/SteamTwoFactorToken.cs b/Util/SteamTwoFactorToken.cs index 69b3f3e..629c577 100644 --- a/Util/SteamTwoFactorToken.cs +++ b/Util/SteamTwoFactorToken.cs @@ -47,7 +47,11 @@ namespace steam_token.Util } catch (Exception) { - MessageBox.Show("shared_secret值校验失败, 请重新设置"); + if (!CommonUtil.FIRST_ENABLE) + { + MessageBox.Show("shared_secret值校验失败, 请重新设置"); + } + CommonUtil.FIRST_ENABLE = false; return false; } }