Changeset 5322


Ignore:
Timestamp:
2003-08-28T12:42:17+12:00 (21 years ago)
Author:
jmt12
Message:

Pausing is now disabled for 'simple' type downloads (where I could pause even if I wanted to)

File:
1 edited

Legend:

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

    r4675 r5322  
    251251     * reset to zero.
    252252     */
    253     public void mirrorBegun(boolean reset) {
     253    public void mirrorBegun(boolean reset, boolean simple) {
    254254    if(reset) {
    255255        this.file_count = 0;
     
    263263    action.setIcon(Utility.getImage("vcrpause.gif"));
    264264    action.setToolTipText("Pause current download");
     265    // If this is a simple download, then pause is not available (nor is prematurely stopping!)
     266    action.setEnabled(!simple);
    265267    cancel.setEnabled(false);
    266268    if(simple) {
     
    285287    action.setIcon(Utility.getImage("vcrfastforward.gif"));
    286288    action.setToolTipText("Restart current download");
     289    action.setEnabled(true);
    287290    cancel.setEnabled(true);
    288291    this.updateUI();
Note: See TracChangeset for help on using the changeset viewer.