1
0
mirror of https://github.com/arduino/Arduino.git synced 2024-12-01 12:24:14 +01:00

Added preferences.txt option to disable preferences save

Fix #5668
This commit is contained in:
Cristian Maglie 2018-08-10 20:04:50 +02:00 committed by Cristian Maglie
parent daefdc9d7d
commit 99fe051c4a
2 changed files with 6 additions and 0 deletions

View File

@ -114,6 +114,9 @@ public class PreferencesData {
if (!doSave)
return;
if (getBoolean("preferences.readonly"))
return;
// on startup, don't worry about it
// this is trying to update the prefs for who is open
// before Preferences.init() has been called.

View File

@ -279,6 +279,9 @@ serial.line_ending=1
# default chosen language (none for none)
editor.languages.current =
# Disable saving of preferences.txt file (settings will not survive Arduino IDE reboot)
preferences.readonly=false
# Debugging/Development Preferences
# ---------------------------------