Fixed: mis-threading

This commit is contained in:
Ray 2019-04-24 22:33:42 +01:00
parent d0471a03a8
commit 17e4e867eb

View File

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