Skip to content

Commit

Permalink
fix: show console option
Browse files Browse the repository at this point in the history
  • Loading branch information
InuInu2022 committed Aug 24, 2024
1 parent 093a178 commit d006c2e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SasaraUtil.Core/Models/Talk/VocalPercussionCore.cs
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,14 @@ static async ValueTask AwakeAsync(string TTS)
Arguments = $"-cevio {TTS}",
CreateNoWindow = !IsShowConsole, //show console,
//ErrorDialog = true,
UseShellExecute = false,
UseShellExecute = IsShowConsole,
//RedirectStandardOutput = true,
};
if(!Core.Models.AppUtil.IsDebug){
Logger.Info($"IsShowConsole: {IsShowConsole}");
Logger.Info($"psi.CreateNoWindow: {ps.CreateNoWindow}");
Logger.Info($"psi.UseShellExecute: {ps.UseShellExecute}");
if(!IsShowConsole)
{
ps!.WindowStyle = ProcessWindowStyle.Hidden;
}

Expand Down

0 comments on commit d006c2e

Please sign in to comment.