|
|
@ -68,6 +68,8 @@ namespace STranslate.ViewModel
|
|
|
|
if (IsTopmost) return;
|
|
|
|
if (IsTopmost) return;
|
|
|
|
_speech.SpeakAsyncCancelAll();
|
|
|
|
_speech.SpeakAsyncCancelAll();
|
|
|
|
Mainwin.Hide();
|
|
|
|
Mainwin.Hide();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Util.Util.FlushMemory();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
//source speak
|
|
|
|
//source speak
|
|
|
|
SourceSpeakCmd = new RelayCommand((_) => true, (_) =>
|
|
|
|
SourceSpeakCmd = new RelayCommand((_) => true, (_) =>
|
|
|
@ -134,6 +136,7 @@ namespace STranslate.ViewModel
|
|
|
|
LargeHumpRet = string.Empty;
|
|
|
|
LargeHumpRet = string.Empty;
|
|
|
|
IdentifyLanguage = string.Empty;
|
|
|
|
IdentifyLanguage = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Util.Util.FlushMemory();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 打开主窗口
|
|
|
|
/// 打开主窗口
|
|
|
@ -189,6 +192,7 @@ namespace STranslate.ViewModel
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
|
public void ExitApp(int id)
|
|
|
|
public void ExitApp(int id)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
Util.Util.FlushMemory();
|
|
|
|
Mainwin.NotifyIcon.Dispose();
|
|
|
|
Mainwin.NotifyIcon.Dispose();
|
|
|
|
Mainwin.Close();
|
|
|
|
Mainwin.Close();
|
|
|
|
//语音合成销毁
|
|
|
|
//语音合成销毁
|
|
|
|