-Unfreeze all button bug fix
-MALFORMED ATTRIBUTES WINDOWS FIX
This commit is contained in:
tonikelope 2020-02-01 13:34:36 +01:00
parent 14741d9242
commit c418d95bb1
7 changed files with 17 additions and 7 deletions

View File

@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.tonikelope</groupId>
<artifactId>MegaBasterd</artifactId>
<version>7.13</version>
<version>7.14</version>
<packaging>jar</packaging>
<dependencies>
<dependency>

View File

@ -885,10 +885,10 @@ public class FileGrabberDialog extends javax.swing.JDialog {
for (Object p : object_path) {
path += "/" + p;
path += File.separator + p;
}
path = path.replaceAll("^//", "/").trim().replaceAll(" \\[[0-9,.]+ [A-Z]+\\]$", "");
path = path.replaceAll("^/+", "/").replaceAll("^\\+", "\\").trim().replaceAll(" \\[[0-9,.]+ [A-Z]+\\]$", "");
File file = new File(path);

View File

@ -3,6 +3,7 @@ package com.tonikelope.megabasterd;
import static com.tonikelope.megabasterd.MainPanel.*;
import static com.tonikelope.megabasterd.MiscTools.*;
import java.awt.Dialog;
import java.io.File;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Enumeration;
@ -439,10 +440,10 @@ public class FolderLinkDialog extends javax.swing.JDialog {
for (Object p : object_path) {
path += "/" + ((Map<String, Object>) p).get("name");
path += File.separator + ((Map<String, Object>) p).get("name");
}
path = path.replaceAll("^/+", "").trim();
path = path.replaceAll("^/+", "").replaceAll("^\\+", "").trim();
String url = "https://mega.nz/#N!" + ((Map<String, Object>) node.getUserObject()).get("h") + "!" + ((Map<String, Object>) node.getUserObject()).get("key") + "###n=" + folder_id;

View File

@ -55,7 +55,7 @@ import javax.swing.UIManager;
*/
public final class MainPanel {
public static final String VERSION = "7.13";
public static final String VERSION = "7.14";
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;

View File

@ -271,7 +271,9 @@ public final class MainPanelView extends javax.swing.JFrame {
String file_path = f.getParentFile().getAbsolutePath().replace(base_path, "");
String[] dirs = file_path.split("/");
LOG.log(Level.INFO, "{0} FILE_PATH -> {1}", new Object[]{Thread.currentThread().getName(), file_path});
String[] dirs = file_path.split("\\" + File.separator);
MegaDirNode current_node = file_paths;
@ -279,6 +281,8 @@ public final class MainPanelView extends javax.swing.JFrame {
for (String d : dirs) {
LOG.log(Level.INFO, "{0} DIR -> {1}", new Object[]{Thread.currentThread().getName(), d});
if (!d.isEmpty()) {
if (current_node.getChildren().get(d) != null) {

View File

@ -687,6 +687,11 @@ abstract public class TransferenceManager implements Runnable, SecureSingleThrea
setPreprocessing_transferences(true);
if (isPaused_all()) {
_paused_all = false;
}
THREAD_POOL.execute(() -> {
Thread.currentThread().setPriority(Thread.MIN_PRIORITY);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 198 KiB

After

Width:  |  Height:  |  Size: 194 KiB