Shift key enables process-instance=multi

This commit is contained in:
stax76
2022-07-23 08:50:07 +02:00
parent 5714a5e62a
commit 5a08d9ccd6
2 changed files with 4 additions and 0 deletions

View File

@@ -8,6 +8,7 @@
- playlist-random command jumps to a random playlist entry, default key binding is F9. - playlist-random command jumps to a random playlist entry, default key binding is F9.
- Fix OSC hide behavior on mouse move. - Fix OSC hide behavior on mouse move.
- New binding to show the current file in File Explorer. - New binding to show the current file in File Explorer.
- Shift key enables `process-instance=multi`.
- MediaInfo v22.06 - MediaInfo v22.06
- libmpv shinchiro 2022-07-02 - libmpv shinchiro 2022-07-02

View File

@@ -32,6 +32,9 @@ namespace mpvnet
App.Init(); App.Init();
Mutex mutex = new Mutex(true, StringHelp.GetMD5Hash(App.ConfPath), out bool isFirst); Mutex mutex = new Mutex(true, StringHelp.GetMD5Hash(App.ConfPath), out bool isFirst);
if (Control.ModifierKeys.HasFlag(Keys.Shift))
App.ProcessInstance = "multi";
if ((App.ProcessInstance == "single" || App.ProcessInstance == "queue") && !isFirst) if ((App.ProcessInstance == "single" || App.ProcessInstance == "queue") && !isFirst)
{ {
List<string> args2 = new List<string>(); List<string> args2 = new List<string>();