diff --git a/MainForm.cs b/MainForm.cs index 27d53fc..76db302 100644 --- a/MainForm.cs +++ b/MainForm.cs @@ -678,7 +678,6 @@ namespace bzit.bomg loadFileType = LoadFileType.Jsnx; - loadFileThread.RunWorkerAsync(); break; } } @@ -690,8 +689,6 @@ namespace bzit.bomg usePassword = false; loadFileType = LoadFileType.Jsnx; - - loadFileThread.RunWorkerAsync(); } break; @@ -717,7 +714,6 @@ namespace bzit.bomg loadFileType = LoadFileType.Ryz; - loadFileThread.RunWorkerAsync(); break; } } @@ -729,14 +725,23 @@ namespace bzit.bomg usePassword = false; loadFileType = LoadFileType.Ryz; - - loadFileThread.RunWorkerAsync(); } break; default: + sessionFilename = sessionPassword = null; + usePassword = false; break; } + + if (string.IsNullOrWhiteSpace(sessionFilename)) + { + return; + } + + this.IsBusy = true; + + loadFileThread.RunWorkerAsync(); } protected void loadBookmarkFile_ForJSNX(string filename, string password = "")