Browse Source

Fix broken addon browser.

Download to a valid location.  Stop silently failing, show errors to used.

Change-Id: If28e35e2e3dd7f31dd3099349ec8400095edb9af
Fixes-Issue: CLIENT-393
Reviewed-on: http://gerrit.dmdirc.com/2615
Automatic-Compile: DMDirc Build Manager
Reviewed-by: Shane Mc Cormack <shane@dmdirc.com>
tags/0.7
Greg Holmes 11 years ago
parent
commit
017e900d1b

+ 1
- 5
src/com/dmdirc/addons/ui_swing/components/addonbrowser/InstallWorker.java View File

58
     protected String doInBackground() {
58
     protected String doInBackground() {
59
         try {
59
         try {
60
             final File file = new File(controller.getIdentityManager().getConfigDir(),
60
             final File file = new File(controller.getIdentityManager().getConfigDir(),
61
-                    "." + info.getDownload());
61
+                    "." + info.getId());
62
             Downloader.downloadPage("http://addons.dmdirc.com/addondownload/"
62
             Downloader.downloadPage("http://addons.dmdirc.com/addondownload/"
63
                     + info.getDownload(), file.getAbsolutePath());
63
                     + info.getDownload(), file.getAbsolutePath());
64
 
64
 
97
     /** {@inheritDoc} */
97
     /** {@inheritDoc} */
98
     @Override
98
     @Override
99
     protected void done() {
99
     protected void done() {
100
-        if (!isCancelled()) {
101
-            installer.finished("");
102
-            return;
103
-        }
104
         String message = "";
100
         String message = "";
105
         try {
101
         try {
106
             message = get();
102
             message = get();

Loading…
Cancel
Save