Skip to content

Commit

Permalink
Fix minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsee committed Nov 18, 2020
1 parent f593240 commit 8926fe0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions SimpleRecorder/MainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,6 @@ private async void WebcamDeviceComboBox_SelectionChanged(object sender, Selectio
{
await InitWebcamAsync(webcamDevice.Tag.ToString(), audioDevice.Tag.ToString());
PopulateVideoDeviceProperties(MediaStreamType.VideoRecord, WebcamComboBox, true);

}
catch (UnauthorizedAccessException ex)
{
Expand Down Expand Up @@ -501,8 +500,8 @@ private async void WbComboBox_SelectionChanged(object sender, SelectionChangedEv
{
var selected = (ColorTemperaturePreset)WbComboBox.SelectedItem;
WbSlider.IsEnabled = (selected == ColorTemperaturePreset.Manual);
await mediaCapture.VideoDeviceController.WhiteBalanceControl.SetPresetAsync(selected);

await mediaCapture.VideoDeviceController.WhiteBalanceControl.SetPresetAsync(selected);
}

private async void WbSlider_ValueChanged(object sender, RangeBaseValueChangedEventArgs e)
Expand Down Expand Up @@ -547,6 +546,9 @@ private async void ToggleButton_Checked(object sender, RoutedEventArgs e)
"Directory not found or not enough permissions");

await dialog.ShowAsync();

button.IsChecked = false;
return;
}

var requestSuspensionExtension = new ExtendedExecutionForegroundSession();
Expand Down

0 comments on commit 8926fe0

Please sign in to comment.