Changeset 169:eccafedbf55c


Ignore:
Timestamp:
05/12/12 13:30:28 (13 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
Phase:
public
Message:

Fixed the sensitivity of the pilot hotkey

File:
1 edited

Legend:

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

    r168 r169  
    537537        self._pilotControlsSounds.set_use_underline(True)
    538538        self._pilotControlsSounds.set_tooltip_text(xstr("prefs_sounds_pilotControls_tooltip"))
     539        self._pilotControlsSounds.connect("toggled", self._pilotControlsSoundsToggled)
    539540        backgroundBox.pack_start(self._pilotControlsSounds, False, False, 4)
    540541
     
    595596        active = button.get_active()
    596597        self._pilotControlsSounds.set_sensitive(active)
     598        self._pilotControlsSoundsToggled(self._pilotControlsSounds)
     599        #self._approachCallOuts.set_sensitive(active)
     600        self._speedbrakeAtTD.set_sensitive(active)
     601
     602    def _pilotControlsSoundsToggled(self, button):
     603        """Called when the enable sounds button is toggled."""
     604        active = button.get_active() and self._enableSounds.get_active()
    597605        self._pilotHotkey.set_sensitive(active)
    598606        if active and self._checklistHotkey.get_sensitive():
    599607            self._reconcileHotkeys(self._checklistHotkey, Hotkey.CHANGED_SHIFT,
    600608                                   self._pilotHotkey)
    601         #self._approachCallOuts.set_sensitive(active)
    602         self._speedbrakeAtTD.set_sensitive(active)
    603609
    604610    def _enableChecklistsToggled(self, button):
Note: See TracChangeset for help on using the changeset viewer.