mirror of
https://github.com/tonikelope/megabasterd.git
synced 2025-05-21 00:37:12 +02:00
7.76
Advanced settings mega api key disabled (no longer required)
This commit is contained in:
parent
2c409eb441
commit
b7598c88c4
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.tonikelope</groupId>
|
||||
<artifactId>MegaBasterd</artifactId>
|
||||
<version>7.75</version>
|
||||
<version>7.76</version>
|
||||
<packaging>jar</packaging>
|
||||
<repositories>
|
||||
<repository>
|
||||
|
@ -67,7 +67,7 @@ import javax.swing.UIManager;
|
||||
*/
|
||||
public final class MainPanel {
|
||||
|
||||
public static final String VERSION = "7.75";
|
||||
public static final String VERSION = "7.76";
|
||||
public static final boolean FORCE_SMART_PROXY = false; //TRUE FOR DEBUGING SMART PROXY
|
||||
public static final int THROTTLE_SLICE_SIZE = 16 * 1024;
|
||||
public static final int DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024;
|
||||
@ -399,7 +399,6 @@ public final class MainPanel {
|
||||
openBrowserURL("https://mega.nz/sdk");
|
||||
|
||||
}*/
|
||||
|
||||
}
|
||||
|
||||
public static Boolean getResume_uploads() {
|
||||
|
@ -1099,10 +1099,13 @@
|
||||
<Group type="103" groupAlignment="0" attributes="0">
|
||||
<Component id="start_frozen_checkbox" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="debug_file_checkbox" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="custom_chunks_dir_checkbox" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<Component id="custom_chunks_dir_button" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="custom_chunks_dir_checkbox" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="custom_chunks_dir_button" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<Group type="102" alignment="0" attributes="0">
|
||||
<EmptySpace min="-2" pref="165" max="-2" attributes="0"/>
|
||||
<Component id="custom_chunks_dir_current_label" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<Component id="rec_zoom_label" alignment="0" min="-2" max="-2" attributes="0"/>
|
||||
@ -1141,12 +1144,12 @@
|
||||
<Component id="jButton1" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||
<Component id="custom_chunks_dir_checkbox" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Group type="103" groupAlignment="3" attributes="0">
|
||||
<Component id="custom_chunks_dir_checkbox" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="custom_chunks_dir_button" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
<Component id="custom_chunks_dir_current_label" alignment="3" min="-2" max="-2" attributes="0"/>
|
||||
</Group>
|
||||
<EmptySpace max="-2" attributes="0"/>
|
||||
<Component id="custom_chunks_dir_current_label" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace type="unrelated" max="-2" attributes="0"/>
|
||||
<Component id="mega_api_key_panel" min="-2" max="-2" attributes="0"/>
|
||||
<EmptySpace type="separate" max="-2" attributes="0"/>
|
||||
@ -1578,6 +1581,9 @@
|
||||
</Properties>
|
||||
</Component>
|
||||
<Container class="javax.swing.JPanel" name="mega_api_key_panel">
|
||||
<Properties>
|
||||
<Property name="opaque" type="boolean" value="false"/>
|
||||
</Properties>
|
||||
|
||||
<Layout>
|
||||
<DimensionLayout dim="0">
|
||||
@ -1620,9 +1626,6 @@
|
||||
<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>
|
||||
@ -1630,6 +1633,7 @@
|
||||
<Font name="Dialog" size="18" style="0"/>
|
||||
</Property>
|
||||
<Property name="doubleBuffered" type="boolean" value="true"/>
|
||||
<Property name="enabled" type="boolean" value="false"/>
|
||||
</Properties>
|
||||
<AuxValues>
|
||||
<AuxValue name="JavaCodeGenerator_CreateCodePost" type="java.lang.String" value="mega_api_key.addMouseListener(new ContextMenuMouseListener());"/>
|
||||
@ -1640,16 +1644,16 @@
|
||||
<Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
|
||||
<Font name="Dialog" size="14" style="1"/>
|
||||
</Property>
|
||||
<Property name="foreground" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||
<Color blue="ff" green="0" red="0" type="rgb"/>
|
||||
</Property>
|
||||
<Property name="horizontalAlignment" type="int" value="0"/>
|
||||
<Property name="text" type="java.lang.String" value="WARNING: USING MEGA API WITHOUT API KEY MAY VIOLATE ITS TERM OF USE. YOU SHOULD GET A KEY -> https://mega.nz/sdk"/>
|
||||
<Property name="text" type="java.lang.String" value="MEGA API KEY IS NO LONGER REQUIRED (DISABLED)"/>
|
||||
<Property name="cursor" type="java.awt.Cursor" editor="org.netbeans.modules.form.editors2.CursorEditor">
|
||||
<Color id="Cursor de Mano"/>
|
||||
</Property>
|
||||
<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_warningMouseClicked"/>
|
||||
</Events>
|
||||
</Component>
|
||||
</SubComponents>
|
||||
</Container>
|
||||
|
@ -1599,28 +1599,22 @@ public class SettingsDialog extends javax.swing.JDialog {
|
||||
debug_file_checkbox.setFont(new java.awt.Font("Dialog", 1, 18)); // NOI18N
|
||||
debug_file_checkbox.setText("Save debug info to file");
|
||||
|
||||
mega_api_key_panel.setOpaque(false);
|
||||
|
||||
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);
|
||||
mega_api_key.setEnabled(false);
|
||||
|
||||
mega_api_key_warning.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N
|
||||
mega_api_key_warning.setForeground(new java.awt.Color(0, 0, 255));
|
||||
mega_api_key_warning.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
|
||||
mega_api_key_warning.setText("WARNING: USING MEGA API WITHOUT API KEY MAY VIOLATE ITS TERM OF USE. YOU SHOULD GET A KEY -> https://mega.nz/sdk");
|
||||
mega_api_key_warning.setText("MEGA API KEY IS NO LONGER REQUIRED (DISABLED)");
|
||||
mega_api_key_warning.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
|
||||
mega_api_key_warning.setDoubleBuffered(true);
|
||||
mega_api_key_warning.addMouseListener(new java.awt.event.MouseAdapter() {
|
||||
public void mouseClicked(java.awt.event.MouseEvent evt) {
|
||||
mega_api_key_warningMouseClicked(evt);
|
||||
}
|
||||
});
|
||||
|
||||
javax.swing.GroupLayout mega_api_key_panelLayout = new javax.swing.GroupLayout(mega_api_key_panel);
|
||||
mega_api_key_panel.setLayout(mega_api_key_panelLayout);
|
||||
@ -1684,10 +1678,12 @@ public class SettingsDialog extends javax.swing.JDialog {
|
||||
.addGroup(advanced_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
||||
.addComponent(start_frozen_checkbox)
|
||||
.addComponent(debug_file_checkbox)
|
||||
.addComponent(custom_chunks_dir_checkbox)
|
||||
.addGroup(advanced_panelLayout.createSequentialGroup()
|
||||
.addComponent(custom_chunks_dir_button)
|
||||
.addComponent(custom_chunks_dir_checkbox)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(custom_chunks_dir_button))
|
||||
.addGroup(advanced_panelLayout.createSequentialGroup()
|
||||
.addGap(165, 165, 165)
|
||||
.addComponent(custom_chunks_dir_current_label))
|
||||
.addComponent(rec_zoom_label)
|
||||
.addGroup(advanced_panelLayout.createSequentialGroup()
|
||||
@ -1716,11 +1712,11 @@ public class SettingsDialog extends javax.swing.JDialog {
|
||||
.addComponent(language_combo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addComponent(jButton1))
|
||||
.addGap(18, 18, 18)
|
||||
.addComponent(custom_chunks_dir_checkbox)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addGroup(advanced_panelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
||||
.addComponent(custom_chunks_dir_button)
|
||||
.addComponent(custom_chunks_dir_current_label))
|
||||
.addComponent(custom_chunks_dir_checkbox)
|
||||
.addComponent(custom_chunks_dir_button))
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
||||
.addComponent(custom_chunks_dir_current_label)
|
||||
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
||||
.addComponent(mega_api_key_panel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
||||
.addGap(18, 18, 18)
|
||||
@ -3070,16 +3066,6 @@ public class SettingsDialog extends javax.swing.JDialog {
|
||||
megacrypter_reverse_warning_label.setEnabled(megacrypter_reverse_checkbox.isSelected());
|
||||
}//GEN-LAST:event_megacrypter_reverse_checkboxStateChanged
|
||||
|
||||
private void mega_api_key_warningMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_mega_api_key_warningMouseClicked
|
||||
// TODO add your handling code here:
|
||||
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
|
||||
|
||||
private void import_mega_buttonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_import_mega_buttonActionPerformed
|
||||
// TODO add your handling code here:
|
||||
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 203 KiB After Width: | Height: | Size: 200 KiB |
Loading…
x
Reference in New Issue
Block a user