improved menu performance and folder browser fix

This commit is contained in:
Frank Skare
2021-09-05 08:23:42 +02:00
parent e4c65cd84e
commit 7a6b2011e4
7 changed files with 49 additions and 115 deletions

View File

@@ -9,12 +9,13 @@ using System.Runtime.InteropServices;
using System.Threading;
using System.Windows.Forms;
using System.Windows.Forms.Integration;
using System.Windows.Threading;
using MsgBoxEx;
using WpfControls = System.Windows.Controls;
using static mpvnet.Native;
using static mpvnet.Global;
using MsgBoxEx;
namespace mpvnet
{
@@ -639,6 +640,8 @@ namespace mpvnet
try {
App.RunTask(() => {
MenuAutoResetEvent.WaitOne();
System.Windows.Application.Current.Dispatcher.Invoke(
DispatcherPriority.Background, new Action(delegate { }));
Core.Command(item.Command);
});
}