Skip to content

Commit 7cb99ad

Browse files
matthijskooijmancmaglie
authored andcommitted
Ensure --verbose is never saved to preferences.txt
Previously, --verbose would be processed after the preferences were saved, which should usually mean that it should never influence the saved preferences. However, if for whatever reason Preferences.save() would be called later, the verbosity preferences would still be messed up. Since we now have a Preferences.setDoSave() method, we can make sure that these verbosity preferences (and any other preferences that are changed after the build started) are never saved.
1 parent d6333f8 commit 7cb99ad

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/src/processing/app/Base.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,10 @@ public Base(String[] args) throws Exception {
449449
Preferences.set("build.verbose", "" + doVerboseBuild);
450450
Preferences.set("upload.verbose", "" + doVerboseUpload);
451451

452+
// Make sure these verbosity preferences are only for the
453+
// current session
454+
Preferences.setDoSave(false);
455+
452456
Editor editor = editors.get(0);
453457

454458
if (action == ACTION.UPLOAD) {

0 commit comments

Comments
 (0)