Never check option for built-in web view when disabled

Even if configured in the settings, check the option to
use a browser tab as this will be used as fallback.
This commit is contained in:
Martchus 2023-04-06 01:03:13 +02:00
parent c08d6e54be
commit a5f1ffd439
1 changed files with 2 additions and 0 deletions

View File

@ -1414,8 +1414,10 @@ void GeneralWebViewOptionPage::reset()
const auto &webView = values().webView;
switch (webView.mode) {
case ::Settings::WebView::Mode::Builtin:
#ifndef SYNCTHINGWIDGETS_NO_WEBVIEW
ui()->builtinRadioButton->setChecked(true);
break;
#endif
case ::Settings::WebView::Mode::Browser:
ui()->browserRadioButton->setChecked(true);
break;