diff --git a/launcher/ui/widgets/CustomCommands.cpp b/launcher/ui/widgets/CustomCommands.cpp index 45bd0cbea..ddeaefc4b 100644 --- a/launcher/ui/widgets/CustomCommands.cpp +++ b/launcher/ui/widgets/CustomCommands.cpp @@ -65,8 +65,6 @@ void CustomCommands::retranslate() bool CustomCommands::checked() const { - if (!ui->overrideCheckBox->isVisible()) - return true; return ui->overrideCheckBox->isChecked(); } diff --git a/launcher/ui/widgets/EnvironmentVariables.cpp b/launcher/ui/widgets/EnvironmentVariables.cpp index 653f0d23d..9387ef2e2 100644 --- a/launcher/ui/widgets/EnvironmentVariables.cpp +++ b/launcher/ui/widgets/EnvironmentVariables.cpp @@ -96,8 +96,6 @@ void EnvironmentVariables::retranslate() bool EnvironmentVariables::override() const { - if (!ui->overrideCheckBox->isVisible()) - return false; return ui->overrideCheckBox->isChecked(); }