thiagoralves / OpenPLC_Editor

OpenPLC Editor - IDE capable of creating programs for the OpenPLC Runtime
GNU General Public License v2.0
429 stars 207 forks source link

Arduino settings in project #124

Closed joluxer closed 3 months ago

joluxer commented 3 months ago

Move the settings.json into the project folder as arduino-settings.json.

The file arduino-settings.json is under control of the ProjectContoller class and is created only, if there is content from Arduino uploads. It is duplicated well when issuing "Save As...".

A small drawback coming from the ArduinoUploadDialog implementation, is that the JSON file is always marked as "dirty" (i.e. to be saved), when an upload or build took place, even where there where no changes to the content of the file. If this makes too much noise on the UI or in the project directory (i.e. for version control systems), this could be solved.