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/collection/CollectionManager.java

    r13596 r13600  
    102102    static private GShellProgressMonitor import_monitor = null;
    103103
    104     /** Whether we have downloaded the collection configurations in this session, when using a remote Greenstone. */
    105     static public boolean downloaded_collection_configurations = false;
    106 
    107104    /** The name of the standard lock file. */
    108105    static final public String LOCK_FILE = "gli.lck";
     
    10671064    {
    10681065    // If there was an open collection last session, reopen it
    1069     if (Gatherer.open_collection_file_path != null && !Gatherer.isGsdlRemote) {
    1070         // If we're using a remote Greenstone server we must download the collection configurations first
    1071         // if (Gatherer.isGsdlRemote && !CollectionManager.downloaded_collection_configurations) {
    1072         // if (RemoteGreenstoneServer.downloadCollectionConfigurations().equals("")) {
    1073             // Something went wrong downloading the collection configurations
    1074             // return;
    1075         // }
    1076 
    1077         // CollectionManager.downloaded_collection_configurations = true;
    1078         // }
    1079 
     1066    if (Gatherer.open_collection_file_path != null) {
    10801067        // Load the collection now
    10811068        loadCollection(Gatherer.open_collection_file_path);
Note: See TracChangeset for help on using the changeset viewer.