EXXETA / correomqtt

A modern graphical MQTT client using the HiveMQ client library. MQTT is a messaging protocol widely used in the IoT world. CorreoMQTT provides a UI to send and receive messages. It is able to handle multiple connections at the same time.
http://correomqtt.org
GNU General Public License v3.0
53 stars 21 forks source link

JSON Plugin appending duplicate #180

Closed nojomyth-dev closed 4 months ago

nojomyth-dev commented 9 months ago

Describe the bug Enable autoformat. After entering any JSON, it results in a duplicated version of this JSON. This is not a visual glitch, it contains the actual text.

To Reproduce Steps to reproduce the behavior:

  1. Connect to a MQTT server
  2. Enable auto format
  3. Enter {} as the payload
  4. It should now display { } {}
  5. You cannot delete the {}, since it will automatically reformat to this string.

Expected behavior There should be a single JSON in the payload field for publish. It should not be duplicated.

Screenshots will not be provided

Desktop (please complete the following information):

Additional context Really, really annoying bug. Basically makes auto format useless.

nojomyth-dev commented 9 months ago

On a fix