diff options
-rw-r--r-- | js/gui.js | 13 | ||||
-rw-r--r-- | main.css | 4 |
2 files changed, 15 insertions, 2 deletions
@@ -304,13 +304,22 @@ GUI_control.prototype.renderLogicConditionSelect = function ($container, logicCo let $select = $container.append('<select class="mix-rule-condition">').find("select"), lcCount = logicConditions.getCount(); + option = ""; if (withAlways) { $select.append('<option value="-1">Always</option>') } for (let i = 0; i < lcCount ; i++) { - if (!onlyEnabled || (logicConditions.isEnabled(i))) { - $select.append('<option value="' + i + '">Logic Condition ' + i + ' </option>'); + if (!onlyEnabled || i === current || (logicConditions.isEnabled(i))) { + option = '<option'; + + if (i === current && !logicConditions.isEnabled(i)) { + option+= ' class="lc_disabled"'; + } + + option+= ' value="' + i + '">Logic Condition ' + i + ' </option>'; + + $select.append(option); } } @@ -2010,6 +2010,10 @@ select { padding: 1px; } +.lc_disabled { + color: #aaa; +} + .ic_osd { background-image: url("../images/icons/icon_osd.svg"); background-position-y: 4px; |