[F] May fix sometime custom command not triggered

pull/40/head
Clansty 2024-05-20 22:40:02 +08:00
parent 21309cddf0
commit 13fc51a8a5
1 changed files with 10 additions and 0 deletions

View File

@ -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();