瀏覽代碼

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 年之前
父節點
當前提交
017e900d1b
共有 1 個檔案被更改,包括 1 行新增5 行删除
  1. 1
    5
      src/com/dmdirc/addons/ui_swing/components/addonbrowser/InstallWorker.java

+ 1
- 5
src/com/dmdirc/addons/ui_swing/components/addonbrowser/InstallWorker.java 查看文件

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

Loading…
取消
儲存