Change Pads "save" button to "download", no longer open save box on click
This commit is contained in:
parent
077a6281c6
commit
4959d53c85
@ -54,7 +54,6 @@ import java.awt.Graphics;
|
||||
import java.awt.Image;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.awt.event.KeyEvent;
|
||||
import java.awt.event.WindowAdapter;
|
||||
import java.awt.event.WindowEvent;
|
||||
import java.io.BufferedReader;
|
||||
|
@ -156,7 +156,7 @@
|
||||
</Component>
|
||||
<Component class="javax.swing.JButton" name="saveBtn">
|
||||
<Properties>
|
||||
<Property name="text" type="java.lang.String" value="Save"/>
|
||||
<Property name="text" type="java.lang.String" value="Download"/>
|
||||
<Property name="toolTipText" type="java.lang.String" value="Save pad locally"/>
|
||||
<Property name="enabled" type="boolean" value="false"/>
|
||||
</Properties>
|
||||
|
@ -351,7 +351,7 @@ public class Pads extends javax.swing.JInternalFrame {
|
||||
}
|
||||
});
|
||||
|
||||
saveBtn.setText("Save");
|
||||
saveBtn.setText("Download");
|
||||
saveBtn.setToolTipText("Save pad locally");
|
||||
saveBtn.setEnabled(false);
|
||||
saveBtn.addActionListener(new java.awt.event.ActionListener() {
|
||||
@ -484,7 +484,7 @@ public class Pads extends javax.swing.JInternalFrame {
|
||||
}//GEN-LAST:event_purgeBtnActionPerformed
|
||||
|
||||
private void saveBtnActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_saveBtnActionPerformed
|
||||
Main.loadFrame(new Editor(getPad(getSelectedPad()), true));
|
||||
Main.loadFrame(new Editor(getPad(getSelectedPad()), false));
|
||||
updateList();
|
||||
}//GEN-LAST:event_saveBtnActionPerformed
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user