Compare commits

...

2 Commits

Author SHA1 Message Date
1fea2a2e11 Made the display update sooner when launching steam deck software 2023-09-10 22:16:16 -06:00
2e44a27b2b Update manifest 2023-09-10 22:10:00 -06:00
2 changed files with 26 additions and 17 deletions

View File

@ -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)

View File

@ -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",