2 Commits

2 changed files with 14 additions and 8 deletions

View File

@ -66,7 +66,6 @@ public class DialAction : EncoderBase
_thread.SetApartmentState(ApartmentState.STA); _thread.SetApartmentState(ApartmentState.STA);
_thread.Start(); _thread.Start();
_currentAudioSession = settings.FallbackBehavior == FallbackBehavior.SystemSounds ? _audioHelper.GetSystemSounds() : _audioHelper.GetSystemVolume(); _currentAudioSession = settings.FallbackBehavior == FallbackBehavior.SystemSounds ? _audioHelper.GetSystemSounds() : _audioHelper.GetSystemVolume();
} }
@ -207,10 +206,17 @@ public class DialAction : EncoderBase
} }
public void WinEventProc(IntPtr hWinEventHook, uint eventType, IntPtr hwnd, int idObject, int idChild, uint dwEventThread, uint dwmsEventTime) public void WinEventProc(IntPtr hWinEventHook, uint eventType, IntPtr hwnd, int idObject, int idChild, uint dwEventThread, uint dwmsEventTime)
{ {
OnTick(); try
} {
OnTick();
Thread.Sleep(TimeSpan.FromSeconds(1));
}
catch (Exception ex)
{
Logger.Instance.LogMessage(TracingLevel.ERROR, $"Exception on WinEventProc\n {ex}");
}
}
} }

View File

@ -30,10 +30,10 @@
} }
], ],
"Author": "dlprows", "Author": "dlprows",
"Name": "FocusVolumeControl", "Name": "Focused Application Volume",
"Description": "Control the volume of the focused application", "Description": "Control the volume of the focused application",
"URL": "https://github.com/dlprows/FocusVolumeControl", "URL": "https://github.com/dlprows/FocusVolumeControl",
"Version": "1.0.0", "Version": "1.0.1",
"CodePath": "FocusVolumeControl", "CodePath": "FocusVolumeControl",
"Category": "Volume Control [dlprows]", "Category": "Volume Control [dlprows]",
"Icon": "Images/pluginIcon", "Icon": "Images/pluginIcon",