Ignore:
Timestamp:
2007-01-12T17:20:20+13:00 (17 years ago)
Author:
mdewsnip
Message:

Now always downloads the collection configurations when the GLI is starting up, as nothing much works without them. This simplifies the code and means that the openCollectionFromLastTime() function works.

File:
1 edited

Legend:

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

    r13591 r13600  
    673673    public void run()
    674674    {
    675         // If using a remote Greenstone check if the collection configurations have been downloaded; do so if not
    676         if (Gatherer.isGsdlRemote && !CollectionManager.downloaded_collection_configurations) {
    677         if (RemoteGreenstoneServer.downloadCollectionConfigurations().equals("")) {
    678             // Something went wrong downloading the collection configurations
    679             return;
    680         }
    681 
    682         CollectionManager.downloaded_collection_configurations = true;
    683         }
    684 
    685675        String collection_file_path = showOpenCollectionDialog();
    686676
     
    727717    public void run()
    728718    {
    729         // If using a remote Greenstone check if the collection configurations have been downloaded; do so if not
    730         if (Gatherer.isGsdlRemote && !CollectionManager.downloaded_collection_configurations) {
    731         if (RemoteGreenstoneServer.downloadCollectionConfigurations().equals("")) {
    732             // Something went wrong downloading the collection configurations
    733             return;
    734         }
    735 
    736         CollectionManager.downloaded_collection_configurations = true;
    737         }
    738 
    739719        // Create the collection details prompt from new collection prompt
    740720        NewCollectionDetailsPrompt ncd_prompt = new NewCollectionDetailsPrompt();
     
    763743    public void run()
    764744    {
    765         // If using a remote Greenstone check if the collection configurations have been downloaded; do so if not
    766         if (Gatherer.isGsdlRemote && !CollectionManager.downloaded_collection_configurations) {
    767         if (RemoteGreenstoneServer.downloadCollectionConfigurations().equals("")) {
    768             // Something went wrong downloading the collection configurations
    769             return;
    770         }
    771 
    772         CollectionManager.downloaded_collection_configurations = true;
    773         }
    774 
    775745        // The rest is handled by the DeleteCollectionPrompt
    776746        DeleteCollectionPrompt dc_prompt = new DeleteCollectionPrompt();
Note: See TracChangeset for help on using the changeset viewer.