forked from Cookies_Github_mirror/AquaDX
[F] May fix sometime custom command not triggered
This commit is contained in:
@@ -28,6 +28,16 @@ namespace AquaMai.UX
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPrefix]
|
||||
[HarmonyPatch(typeof(MusicSelectProcess), "OnStart")]
|
||||
public static void MusicSelectProcessPreStart()
|
||||
{
|
||||
if (!string.IsNullOrWhiteSpace(AquaMai.AppConfig.UX.ExecOnEntry))
|
||||
{
|
||||
Exec(AquaMai.AppConfig.UX.ExecOnEntry);
|
||||
}
|
||||
}
|
||||
|
||||
private static void Exec(string command)
|
||||
{
|
||||
var process = new System.Diagnostics.Process();
|
||||
|
||||
Reference in New Issue
Block a user