Ignore:
Timestamp:
10/18/15 14:50:13 (9 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
cef
Phase:
public
Message:

The usage of SimBrief can be enabled/disabled from the configuration (re #279).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/mlx/gui/prefs.py

    r392 r684  
    243243        self._setSmoothing(self._vsSmoothingEnabled, self._vsSmoothingLength,
    244244                           config.vsSmoothingLength)
     245
     246        self._useSimBrief.set_active(config.useSimBrief)
    245247
    246248        pirepDirectory = config.pirepDirectory
     
    291293        config.vsSmoothingLength = self._getSmoothing(self._vsSmoothingEnabled,
    292294                                                       self._vsSmoothingLength)
     295        config.useSimBrief = self._useSimBrief.get_active()
    293296        config.pirepDirectory = text2unicode(self._pirepDirectory.get_text())
    294297        config.pirepAutoSave = self._pirepAutoSave.get_active()
     
    406409                                    xstr("prefs_vsSmoothingEnabledTooltip"))
    407410        simulatorBox.pack_start(vsSmoothingBox, False, False, 4)
     411
     412        self._useSimBrief = gtk.CheckButton(xstr("prefs_useSimBrief"))
     413        self._useSimBrief.set_use_underline(True)
     414        self._useSimBrief.set_tooltip_text(xstr("prefs_useSimBrief_tooltip"))
     415        mainBox.pack_start(self._useSimBrief, False, False, 0)
    408416
    409417        pirepBox = gtk.HBox()
Note: See TracChangeset for help on using the changeset viewer.