From 08f5083284cf5d0dc4267a7a838806e68282e343 Mon Sep 17 00:00:00 2001 From: Fotis Gimian Date: Sat, 18 Sep 2021 12:51:15 +1000 Subject: [PATCH] Only display the indicator when setting volume with keyboard shortcuts. --- source/TotalMixVC.GUI/App.xaml.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/source/TotalMixVC.GUI/App.xaml.cs b/source/TotalMixVC.GUI/App.xaml.cs index 7199534..d1bc373 100644 --- a/source/TotalMixVC.GUI/App.xaml.cs +++ b/source/TotalMixVC.GUI/App.xaml.cs @@ -144,9 +144,6 @@ private async Task ReceiveVolumeAsync() // Switch to the background thread to avoid UI interruptions. await TaskScheduler.Default; - // Obtain the initialized state before setting the volume. - bool initializedBeforeReceive = _volumeManager.IsVolumeInitialized; - // The device sends a ping roughly every 2 seconds (usually a pinch over // 2 seconds), so we'll timeout at 3 seconds to be on the safe side. bool received = await _volumeManager @@ -161,13 +158,6 @@ await _volumeIndicator .UpdateVolumeAsync( _volumeManager.Volume, _volumeManager.VolumeDecibels) .ConfigureAwait(false); - - if (initializedBeforeReceive) - { - await _volumeIndicator - .DisplayCurrentVolumeAsync() - .ConfigureAwait(false); - } } // Switch to the UI thread and update the tray tooltip text.