Changeset 11854:975cc3daadf3 in orange


Ignore:
Timestamp:
02/17/14 18:37:19 (2 months ago)
Author:
Ales Erjavec <ales.erjavec@…>
Branch:
default
Message:

Fixed NodeItem progress state initialization and updating.

Progress indicator should only be visible when the node is
in a "processing state".

Location:
Orange/OrangeCanvas/canvas
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Orange/OrangeCanvas/canvas/items/nodeitem.py

    r11768 r11854  
    10231023        Set the node work progress state (number between 0 and 100). 
    10241024        """ 
    1025         if progress is None or progress < 0: 
     1025        if progress is None or progress < 0 or not self.__processingState: 
    10261026            progress = -1 
    10271027 
  • Orange/OrangeCanvas/canvas/scene.py

    r11773 r11854  
    324324 
    325325        item.setTitle(node.title) 
     326        item.setProcessingState(node.processing_state) 
    326327        item.setProgress(node.progress) 
    327         item.setProcessingState(node.processing_state) 
     328 
    328329        for message in node.state_messages(): 
    329330            item.setStateMessage(message) 
Note: See TracChangeset for help on using the changeset viewer.