Changeset f3cfe7a in sasview


Ignore:
Timestamp:
Apr 10, 2017 5:26:35 AM (7 years ago)
Author:
Adam Washington <adam.washington@…>
Branches:
master, ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
49c46da
Parents:
84657f7
Message:

Force the time when the models were last updated.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/perspectives/fitting/models.py

    red28d8c rf3cfe7a  
    260260        temp = {} 
    261261        if self.is_changed(): 
    262             return  _findModels(dir) 
     262            temp =  _findModels(dir) 
     263            self.last_time_dir_modified = time.time() 
     264            return temp 
    263265        logging.info("plugin model : %s" % str(temp)) 
    264266        return temp 
     
    307309        if os.path.isdir(plugin_dir): 
    308310            temp = os.path.getmtime(plugin_dir) 
    309             if  self.last_time_dir_modified != temp: 
     311            if  self.last_time_dir_modified < temp: 
    310312                is_modified = True 
    311313                self.last_time_dir_modified = temp 
Note: See TracChangeset for help on using the changeset viewer.