1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

Saving and restoring location of the serial monitor.

This commit is contained in:
David A. Mellis
2010-11-07 22:25:02 -05:00
parent b3c92d834f
commit 1cac73c254
3 changed files with 41 additions and 3 deletions

View File

@ -788,6 +788,7 @@ public class Base {
// This will store the sketch count as zero
editors.remove(editor);
Editor.serialMonitor.closeSerialPort();
storeSketches();
// Save out the current prefs state
@ -825,6 +826,7 @@ public class Base {
// If quit is canceled, this will be replaced anyway
// by a later handleQuit() that is not canceled.
storeSketches();
Editor.serialMonitor.closeSerialPort();
if (handleQuitEach()) {
// make sure running sketches close before quitting