diff --git a/ASFui/ASFProcess.cs b/ASFui/ASFProcess.cs index f10bdb4..dd2d4c3 100644 --- a/ASFui/ASFProcess.cs +++ b/ASFui/ASFProcess.cs @@ -130,11 +130,6 @@ private void Check() } } - if (sb.ToString().Contains("Disconnected from Steam!")) - { - _asf.GetBotList(); - } - if (!sb.ToString().Contains("Init() Success!")) return; _asf.GetBotList(); } diff --git a/ASFui/ASFui.cs b/ASFui/ASFui.cs index a613eca..7f8372a 100644 --- a/ASFui/ASFui.cs +++ b/ASFui/ASFui.cs @@ -118,25 +118,19 @@ public void GetBotList() var status = Util.SendCommand("statusall"); var matches = Regex.Matches(status, @"Bot (.*) is"); cbBotList.Invoke(new MethodInvoker(delegate - { - foreach (Match m in matches) - { - cbBotList.Items.Add(m.Groups[1].Value); - } - })); - - cbBotList.Invoke(new MethodInvoker(delegate - { - if (cbBotList.Items.Count <= 0) - { - btnStop.PerformClick(); - } - else - { - cbBotList.SelectedIndex = 0; - EnableElements(); - } - })); + { + foreach (Match m in matches) + cbBotList.Items.Add(m.Groups[1].Value); + })); + + Logging.Info("Bot list refreshed. Detected " + matches.Count + " bots."); + + if (matches.Count <= 0) return; + cbBotList.Invoke(new MethodInvoker(delegate + { + cbBotList.SelectedIndex = 0; + EnableElements(); + })); } #region Buttons Events diff --git a/ASFui/Properties/AssemblyInfo.cs b/ASFui/Properties/AssemblyInfo.cs index 13e50f9..152637a 100644 --- a/ASFui/Properties/AssemblyInfo.cs +++ b/ASFui/Properties/AssemblyInfo.cs @@ -33,5 +33,5 @@ // Puede especificar todos los valores o usar los valores predeterminados de número de compilación y de revisión // mediante el carácter '*', como se muestra a continuación: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.4.0.0")] -[assembly: AssemblyFileVersion("0.4.0.0")] +[assembly: AssemblyVersion("0.4.1.0")] +[assembly: AssemblyFileVersion("0.4.1.0")] diff --git a/ASFui/Util.cs b/ASFui/Util.cs index 839e209..09db6e0 100644 --- a/ASFui/Util.cs +++ b/ASFui/Util.cs @@ -87,6 +87,7 @@ public static void UpgradeSettings() Settings.Default.Upgrade(); Settings.Default.UpdateSettings = false; Settings.Default.Save(); + Logging.Info("ASFui updated to " + new Version(Application.ProductVersion)); } public static bool IsOnScreen(Rectangle rec, double minPercentOnScreen = 0.2) diff --git a/version.txt b/version.txt index 3d2da89..8b04a10 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -0.4.0.0 \ No newline at end of file +0.4.1.0 \ No newline at end of file