fix: array indexing problem

dev_ocr_translate
SONGE9B3\song_pd_win11 2 years ago
parent 1b54ee74c5
commit c8f71ad499

@ -73,6 +73,7 @@ namespace STranslate.View
/// <param name="e"></param> /// <param name="e"></param>
private void Window_Deactivated(object sender, EventArgs e) private void Window_Deactivated(object sender, EventArgs e)
{ {
if (vm == null) return;
if (!vm.IsTopmost) if (!vm.IsTopmost)
{ {
vm.Speech.SpeakAsyncCancelAll(); vm.Speech.SpeakAsyncCancelAll();

@ -22,7 +22,7 @@ namespace STranslate.ViewModel
if (!ReadConfig()) if (!ReadConfig())
{ {
Task.Delay(3000); IsVisibility = false;
Environment.Exit(-1); Environment.Exit(-1);
} }

Loading…
Cancel
Save