mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-06-14 21:21:53 +00:00
#776 FFDec stop working at all after setting "number of threads" to 0 fixed
This commit is contained in:
@@ -87,7 +87,7 @@ public class FolderPreviewPanel extends JPanel {
|
||||
|
||||
static {
|
||||
noImage.fillTransparent();
|
||||
executor = Executors.newFixedThreadPool(Configuration.parallelSpeedUp.get() ? Configuration.parallelThreadCount.get() : 1);
|
||||
executor = Executors.newFixedThreadPool(Configuration.parallelSpeedUp.get() ? Configuration.getParallelThreadCount() : 1);
|
||||
}
|
||||
|
||||
public FolderPreviewPanel(final MainPanel mainPanel, List<TreeItem> items) {
|
||||
@@ -156,7 +156,7 @@ public class FolderPreviewPanel extends JPanel {
|
||||
public synchronized void setItems(List<TreeItem> items) {
|
||||
this.items = items;
|
||||
executor.shutdownNow();
|
||||
executor = Executors.newFixedThreadPool(Configuration.parallelSpeedUp.get() ? Configuration.parallelThreadCount.get() : 1);
|
||||
executor = Executors.newFixedThreadPool(Configuration.parallelSpeedUp.get() ? Configuration.getParallelThreadCount() : 1);
|
||||
cachedPreviews.clear();
|
||||
revalidate();
|
||||
repaint();
|
||||
|
||||
Reference in New Issue
Block a user