Fix enabled state

This commit is contained in:
Jaex 2022-02-07 17:52:28 +03:00
parent ff612201fa
commit a6b9cf7ca6

View file

@ -66,11 +66,9 @@ private async Task SettingsLoad()
{
settingsLoaded = false;
// General
#if STEAM || MicrosoftStore
cbOverrideFFmpegPath.Checked = Options.FFmpeg.OverrideCLIPath;
gbFFmpegExe.Enabled = Options.FFmpeg.OverrideCLIPath;
txtFFmpegPath.Enabled = btnFFmpegBrowse.Enabled = btnDownload.Enabled = Options.FFmpeg.OverrideCLIPath;
#else
cbOverrideFFmpegPath.Visible = false;
#endif
@ -271,7 +269,7 @@ private void cbOverrideFFmpegPath_CheckedChanged(object sender, EventArgs e)
{
#if STEAM || MicrosoftStore
Options.FFmpeg.OverrideCLIPath = cbOverrideFFmpegPath.Checked;
gbFFmpegExe.Enabled = Options.FFmpeg.OverrideCLIPath;
txtFFmpegPath.Enabled = btnFFmpegBrowse.Enabled = btnDownload.Enabled = Options.FFmpeg.OverrideCLIPath;
#endif
}