Ignore:
Timestamp:
12/10/23 09:50:04 (12 months ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
Phase:
public
Message:

Support for an alternative sound set

File:
1 edited

Legend:

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

    r1098 r1123  
    268268        self._enableApproachCallouts.set_active(config.enableApproachCallouts)
    269269        self._speedbrakeAtTD.set_active(config.speedbrakeAtTD)
     270        self._alternativeSoundSet.set_active(config.soundSet!=0)
    270271
    271272        self._enableChecklists.set_active(config.enableChecklists)
     
    321322        config.enableApproachCallouts = self._enableApproachCallouts.get_active()
    322323        config.speedbrakeAtTD = self._speedbrakeAtTD.get_active()
     324        config.soundSet = 1 if self._alternativeSoundSet.get_active() else 0
    323325
    324326        config.enableChecklists = self._enableChecklists.get_active()
     
    726728        backgroundBox.pack_start(self._speedbrakeAtTD, False, False, 4)
    727729
     730        self._alternativeSoundSet = Gtk.CheckButton(xstr("prefs_sounds_alternativeSoundSet"))
     731        self._alternativeSoundSet.set_use_underline(True)
     732        self._alternativeSoundSet.set_tooltip_text(
     733            xstr("prefs_sounds_alternativeSoundSet_tooltip"))
     734        backgroundBox.pack_start(self._alternativeSoundSet, False, False, 4)
     735
    728736        checklistFrame = Gtk.Frame(label = xstr("prefs_sounds_frame_checklists"))
    729737        mainBox.pack_start(checklistFrame, False, False, 4)
     
    769777        self._enableApproachCallouts.set_sensitive(active)
    770778        self._speedbrakeAtTD.set_sensitive(active)
     779        self._alternativeSoundSet.set_sensitive(active)
    771780
    772781    def _pilotControlsSoundsToggled(self, button):
Note: See TracChangeset for help on using the changeset viewer.