Changing Colour of Button results in `cannot dispatch; dispatcher is nil`
```nim
  button_switchMode.onClick = proc(event: ClickEvent) = bMode = if bMode == ENCODE:
      button_switchMode.canvas.areaColor = rgb(255, 0, 0)
      button_switchMode.text = $DECODE
      DECODE
    else:
      button_switchMode.canvas.areaColor = rgb(0, 255, 0)
      button_switchMode.text = $ENCODE
      ENCODE
```

When this `onClick` event gets triggered, my app is getting the following error.

```txt
Error: unhandled exception: cannot dispatch; dispatcher is nil
```

When trying to research this issue, there were hints pointing at it being a problem with incorrect `method` implementations or at least related to objects.