From 0658b9160ee7d03f7953f1ab98f86d0c843f06b3 Mon Sep 17 00:00:00 2001 From: "SONGE9B3\\song_pd_win11" Date: Wed, 28 Dec 2022 21:49:21 +0800 Subject: [PATCH] perf: debug --- STranslate/ViewModel/MainVM.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/STranslate/ViewModel/MainVM.cs b/STranslate/ViewModel/MainVM.cs index 8a50303..e96a5f9 100644 --- a/STranslate/ViewModel/MainVM.cs +++ b/STranslate/ViewModel/MainVM.cs @@ -115,7 +115,9 @@ namespace STranslate.ViewModel var autoRet = AutomaticLanguageRecognition(InputTxt); IdentifyLanguage = autoRet.Item1; isEng = autoRet.Item2; +#if DEBUG return; +#endif translateResp = await Util.Util.TranslateDeepLAsync(SelectedTranslationInterface.Api, InputTxt, LanguageEnumDict[autoRet.Item2], LanguageEnumDict[InputComboSelected]); } else