Changeset 148:453ebaea9090 for src/mlx/config.py
- Timestamp:
- 05/03/12 18:27:13 (12 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/mlx/config.py
r147 r148 41 41 self._onlineACARS = True 42 42 self._flareTimeFromFS = False 43 self._syncFSTime = False 43 44 44 45 self._autoUpdate = True … … 145 146 if flareTimeFromFS!=self._flareTimeFromFS: 146 147 self._flareTimeFromFS = flareTimeFromFS 148 self._modified = True 149 150 @property 151 def syncFSTime(self): 152 """Get whether the simulator's time should be synchronized with the 153 machine's clock.""" 154 return self._syncFSTime 155 156 @syncFSTime.setter 157 def syncFSTime(self, syncFSTime): 158 """Set whether the simulator's time should be synchronized with the 159 machine's clock.""" 160 if syncFSTime!=self._syncFSTime: 161 self._syncFSTime = syncFSTime 147 162 self._modified = True 148 163 … … 213 228 "flareTimeFromFS", 214 229 False) 230 self._syncFSTime = self._getBoolean(config, "general", 231 "syncFSTime", 232 False) 215 233 216 234 self._messageTypeLevels = {} … … 249 267 config.set("general", "flareTimeFromFS", 250 268 "yes" if self._flareTimeFromFS else "no") 269 config.set("general", "syncFSTime", 270 "yes" if self._syncFSTime else "no") 251 271 252 272 config.add_section(Config._messageTypesSection)
Note:
See TracChangeset
for help on using the changeset viewer.