mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-14 23:22:17 +00:00
Added: AS2 - Information about need of decompiling all scripts to detect uninitialized class fields
Fixed: #2338 AS decompiling threads got stuck after cancelling / timeout CancellableWorker refactoring
This commit is contained in:
@@ -24,6 +24,8 @@ import java.awt.Insets;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.util.Timer;
|
||||
import java.util.TimerTask;
|
||||
import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import javax.swing.BoxLayout;
|
||||
import javax.swing.Icon;
|
||||
import javax.swing.JButton;
|
||||
@@ -65,7 +67,7 @@ public class MainFrameStatusPanel extends JPanel {
|
||||
public MainFrameStatusPanel(MainPanel mainPanel) {
|
||||
this.mainPanel = mainPanel;
|
||||
createStatusPanel();
|
||||
}
|
||||
}
|
||||
|
||||
private void createStatusPanel() {
|
||||
JPanel statusLeftPanel = new JPanel();
|
||||
@@ -77,10 +79,11 @@ public class MainFrameStatusPanel extends JPanel {
|
||||
cancelButton.setBorderPainted(false);
|
||||
cancelButton.setOpaque(false);
|
||||
cancelButton.addActionListener((ActionEvent e) -> {
|
||||
if (currentWorker != null) {
|
||||
currentWorker.cancel(true);
|
||||
CancellableWorker w = currentWorker;
|
||||
if (w != null) {
|
||||
w.cancel(true);
|
||||
}
|
||||
});
|
||||
});
|
||||
statusLeftPanel.add(loadingPanel);
|
||||
statusLeftPanel.add(cancelButton);
|
||||
statusLeftPanel.add(statusLabel);
|
||||
|
||||
Reference in New Issue
Block a user