* Updates the side button container based on the value of `showSideButtons` in `appSettings`. * If `showSideButtons` is `false`, the side button container is removed from the DOM. * If `showSideButtons` is `true`, the side button container is appended to the body element.
()
| 2819 | * If `showSideButtons` is `true`, the side button container is appended to the body element. |
| 2820 | */ |
| 2821 | function updateSideButtonContainer() { |
| 2822 | const { showSideButtons } = appSettings.value; |
| 2823 | if (!showSideButtons) { |
| 2824 | sideButtonContainer.remove(); |
| 2825 | return; |
| 2826 | } |
| 2827 | |
| 2828 | $body.append(sideButtonContainer); |
| 2829 | } |
| 2830 | |
| 2831 | /** |
| 2832 | * Updates the margin of the editor and optionally updates the gutter settings. |
no test coverage detected