From c223a11d577724b66b79e70036413a8c0d168cb2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Trzci=C5=84ski?= Date: Wed, 16 Nov 2022 21:59:15 +0100 Subject: [PATCH] Prevent `ryzenadj` creating console window --- PowerControl/MenuStack.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PowerControl/MenuStack.cs b/PowerControl/MenuStack.cs index 803d617..0802039 100644 --- a/PowerControl/MenuStack.cs +++ b/PowerControl/MenuStack.cs @@ -140,7 +140,9 @@ namespace PowerControl "--slow-limit=" + mW.ToString(), "--fast-limit=" + mW.ToString(), }, - WindowStyle = ProcessWindowStyle.Hidden + WindowStyle = ProcessWindowStyle.Hidden, + UseShellExecute = false, + CreateNoWindow = true }); return selected;