()
| 405 | } |
| 406 | |
| 407 | function toggle() { |
| 408 | // if search is active, remove it |
| 409 | const searchBar = actionStack.get("search-bar"); |
| 410 | if (searchBar?.action) { |
| 411 | searchBar.action(); |
| 412 | return; |
| 413 | } |
| 414 | |
| 415 | const $footer = quickTools.$footer; |
| 416 | const $row1 = quickTools.$row1; |
| 417 | const $row2 = quickTools.$row2; |
| 418 | |
| 419 | if (!$footer.contains($row1)) { |
| 420 | setHeight(); |
| 421 | } else if (!$footer.contains($row2)) { |
| 422 | setHeight(2); |
| 423 | } else { |
| 424 | setHeight(0); |
| 425 | } |
| 426 | focusEditor(); |
| 427 | } |
| 428 | |
| 429 | function setHeight(height = 1, save = true) { |
| 430 | const { $footer, $row1, $row2 } = quickTools; |
no test coverage detected