c5190dbf10
This commit is contained in:
tonikelope 2020-12-30 11:51:40 +01:00
parent c889fc45e3
commit d6ac14133c
3 changed files with 14 additions and 2 deletions

View File

@ -29,7 +29,6 @@ import java.net.InetSocketAddress;
import java.net.MalformedURLException;
import java.net.Proxy;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.net.URLDecoder;
import java.nio.ByteBuffer;
@ -1117,7 +1116,7 @@ public class MiscTools {
return;
}
if (System.getProperty("os.name").toLowerCase().contains("nux")) {
Process p = Runtime.getRuntime().exec(new String[] { "xdg-open", url });
Process p = Runtime.getRuntime().exec(new String[]{"xdg-open", url});
p.waitFor();
p.destroy();
return;

View File

@ -1557,6 +1557,9 @@
<Property name="text" type="java.lang.String" value="MEGA API KEY:"/>
<Property name="doubleBuffered" type="boolean" value="true"/>
</Properties>
<Events>
<EventHandler event="mouseClicked" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="mega_api_key_labelMouseClicked"/>
</Events>
</Component>
<Component class="javax.swing.JTextField" name="mega_api_key">
<Properties>

View File

@ -1488,6 +1488,11 @@ public class SettingsDialog extends javax.swing.JDialog {
mega_api_key_label.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
mega_api_key_label.setText("MEGA API KEY:");
mega_api_key_label.setDoubleBuffered(true);
mega_api_key_label.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
mega_api_key_labelMouseClicked(evt);
}
});
mega_api_key.setFont(new java.awt.Font("Dialog", 0, 18)); // NOI18N
mega_api_key.setDoubleBuffered(true);
@ -2899,6 +2904,11 @@ public class SettingsDialog extends javax.swing.JDialog {
openBrowserURL("https://mega.nz/sdk");
}//GEN-LAST:event_mega_api_key_warningMouseClicked
private void mega_api_key_labelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_mega_api_key_labelMouseClicked
// TODO add your handling code here:
mega_api_key_warningMouseClicked(evt);
}//GEN-LAST:event_mega_api_key_labelMouseClicked
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JPanel accounts_panel;
private javax.swing.JButton add_elc_account_button;