mirror of
https://github.com/MewoLab/AquaDX.git
synced 2025-10-25 12:02:40 +00:00
[F] May fix sometime custom command not triggered
This commit is contained in:
parent
21309cddf0
commit
13fc51a8a5
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user