(oldCombo, newCombo)
| 421 | } |
| 422 | |
| 423 | replace(oldCombo, newCombo) { |
| 424 | const [found, _] = this.find(newCombo); |
| 425 | if (found) |
| 426 | return; |
| 427 | const [oldFound, pos] = this.find(oldCombo); |
| 428 | if (oldFound) { |
| 429 | this.combos.splice(pos, 1, [newCombo]); |
| 430 | } else { |
| 431 | this.combos.append(newCombo); |
| 432 | } |
| 433 | this._store(); |
| 434 | } |
| 435 | |
| 436 | disable() { |
| 437 | this._settings.set_strv(this.action, ['']); |
no test coverage detected