Skip to content

Commit

Permalink
Change line-color to light_red for disabled option (#39934)
Browse files Browse the repository at this point in the history
* Change LineColor to light_red for disabled option

* Add option off and fix for translations
  • Loading branch information
Pupsi-Mupsi authored Apr 26, 2020
1 parent 997cdcd commit 2588a0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2629,7 +2629,8 @@ std::string options_manager::show( bool ingame, const bool world_options_only,
if( hasPrerequisite && !hasPrerequisiteFulfilled ) {
cLineColor = c_light_gray;

} else if( current_opt.getValue() == "false" ) {
} else if( current_opt.getValue() == "false" || current_opt.getValue() == "disabled" ||
current_opt.getValue() == "off" ) {
cLineColor = c_light_red;
}

Expand Down

0 comments on commit 2588a0b

Please sign in to comment.