Created
April 4, 2020 14:07
-
-
Save tychobrailleur/8d691bb9c28dc41a9b04a279b3760fe1 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --cc src/main/java/core/net/DownloadDialog.java | |
index 37abad5,48a09f7..0000000 | |
--- a/src/main/java/core/net/DownloadDialog.java | |
+++ b/src/main/java/core/net/DownloadDialog.java | |
@@@ -131,14 -130,10 +131,16 @@@ public class DownloadDialog extends JDi | |
// Download Filter | |
- DefaultMutableTreeNode filterRoot = new DownloadFilter(); | |
+ DownloadFilter filterRoot = new DownloadFilter(); | |
CheckBoxTree downloadFilter = new CheckBoxTree(); | |
- downloadFilter.setSize(180, 180); | |
-- downloadFilter.setModel(new DefaultTreeModel(filterRoot)); | |
++ final DefaultTreeModel newModel = new DefaultTreeModel(filterRoot); | |
++ downloadFilter.setModel(newModel); | |
++ newModel.reload(); | |
+ | |
+ downloadFilter.checkSubTree(filterRoot.getCurrentMatchPath(), core.model.UserParameter.instance().currentMatchlist); | |
+ downloadFilter.checkSubTree(filterRoot.getTeamDataPath(), core.model.UserParameter.instance().xmlDownload); | |
+ downloadFilter.checkSubTree(filterRoot.getSeriesDataPath(), UserParameter.instance().fixtures); | |
+ | |
normalDownloadPanel.setLayout(new BorderLayout()); | |
normalDownloadPanel.add(new JScrollPane(downloadFilter), BorderLayout.CENTER); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment