Skip to content

Commit 218ed16

Browse files
Update ESP8266FS.java
Changed my previously added dialog box to default value yes.
1 parent 86bc1a2 commit 218ed16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ESP8266FS.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ private void createAndUpload(){
302302
title = "SPIFFS Copy";
303303
message = "Would you like a copy of the SPIFFS image in your project folder?";
304304

305-
if(JOptionPane.showOptionDialog(editor, message, title, JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[1]) == JOptionPane.YES_OPTION){
305+
if(JOptionPane.showOptionDialog(editor, message, title, JOptionPane.YES_NO_OPTION, JOptionPane.QUESTION_MESSAGE, null, options, options[0]) == JOptionPane.YES_OPTION){
306306
File source = new File(imagePath);
307307
File dest = new File(sketchFldr + "\\" + sketchName + ".spiffs.bin");
308308
try {

0 commit comments

Comments
 (0)