Ignore:
Timestamp:
2009-05-01T14:57:14+12:00 (15 years ago)
Author:
ak19
Message:

The download panel should be available in client-gli if there's a gs2build folder inside the client-gli checkout. In such a case, the gsdl flag is set to the gs2build folder in client-gli.sh/bat scripts, and gli is launched with this. Still only partially complete: the download panel is available AND it no longer throws an exception when you try to download, but it doesn't download anything either at the moment.

Location:
gli/trunk/src/org/greenstone/gatherer/gui
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • gli/trunk/src/org/greenstone/gatherer/gui/GUIManager.java

    r19271 r19306  
    375375        tab_pane.setFont(Configuration.getFont("general.font", false));
    376376
    377         if (Configuration.get("workflow.download", true)) {
     377        if (Configuration.get("workflow.download", true) && Gatherer.isDownloadEnabled) {
    378378        download_pane = new DownloadPane();
    379379        // "GUI.Download_Tooltip" is used automatically
  • gli/trunk/src/org/greenstone/gatherer/gui/MenuBar.java

    r18370 r19306  
    216216    help.add(help_general);
    217217    help.add(new JSeparator());
    218     if (Configuration.get("workflow.download", true)) {
     218    if (Configuration.get("workflow.download", true) && Gatherer.isDownloadEnabled) {
    219219        help.add(help_download);
    220220    }
  • gli/trunk/src/org/greenstone/gatherer/gui/Preferences.java

    r18589 r19306  
    638638    workflow_download = new JCheckBox(Dictionary.get("GUI.Download")+" - "+Dictionary.get("GUI.Download_Tooltip"));
    639639        workflow_download.setComponentOrientation(Dictionary.getOrientation());
    640     workflow_download.setSelected(Configuration.get("workflow.download", false));
     640    workflow_download.setSelected(Configuration.get("workflow.download", false) && Gatherer.isDownloadEnabled);
    641641    workflow_download.setPreferredSize(ROW_SIZE);
    642642   
Note: See TracChangeset for help on using the changeset viewer.