Compare commits
2 Commits
84a9a89074
...
1fea2a2e11
Author | SHA1 | Date | |
---|---|---|---|
1fea2a2e11 | |||
2e44a27b2b |
@ -70,6 +70,7 @@ public class DialAction : EncoderBase
|
||||
_thread.Start();
|
||||
|
||||
_currentAudioSession = settings.FallbackBehavior == FallbackBehavior.SystemSounds ? _audioHelper.GetSystemSounds() : _audioHelper.GetSystemVolume();
|
||||
_ = UpdateStateIfNeeded();
|
||||
}
|
||||
|
||||
public override async void DialDown(DialPayload payload)
|
||||
@ -174,6 +175,9 @@ public class DialAction : EncoderBase
|
||||
|
||||
private async Task UpdateStateIfNeeded()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
if (_currentAudioSession != null)
|
||||
{
|
||||
|
||||
@ -196,6 +200,11 @@ public class DialAction : EncoderBase
|
||||
_previousState = uiState;
|
||||
}
|
||||
}
|
||||
catch (Exception ex )
|
||||
{
|
||||
Logger.Instance.LogMessage(TracingLevel.ERROR, $"Failed to update screen\n {ex}");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public override void ReceivedGlobalSettings(ReceivedGlobalSettingsPayload payload)
|
||||
|
@ -33,7 +33,7 @@
|
||||
"Name": "Focused Application Volume",
|
||||
"Description": "Control the volume of the focused application",
|
||||
"URL": "https://github.com/dlprows/FocusVolumeControl",
|
||||
"Version": "1.0.1",
|
||||
"Version": "1.1.0",
|
||||
"CodePath": "FocusVolumeControl",
|
||||
"Category": "Volume Control [dlprows]",
|
||||
"Icon": "Images/pluginIcon",
|
||||
|
Loading…
Reference in New Issue
Block a user