Skip to content

Commit

Permalink
"Play MIDI" disables with "Enable MIDI"
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnodonCode committed Jan 22, 2025
1 parent ad834f6 commit cf360b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/appshell/qml/Preferences/NoteInputPreferencesPage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ PreferencesPage {
playChordSymbolWhenEditing: noteInputModel.playChordSymbolWhenEditing
playNotesOnMidiInput: noteInputModel.playNotesOnMidiInput

playNotesOnMidiInputBoxEnabled: noteInputModel.enableMidiInput && noteInputModel.playNotesWhenEditing

navigation.section: root.navigationSection
navigation.order: root.navigationOrderStart + 2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ BaseSection {
property alias playChordSymbolWhenEditing: playChordSymbolBox.checked
property alias playNotesOnMidiInput: playNotesOnMidiInputBox.checked

property alias playNotesOnMidiInputBoxEnabled: playNotesOnMidiInputBox.enabled

//property alias chordOptions: playChordBox.model
//property alias currentChordIndex: playChordBox.currentIndex

Expand Down Expand Up @@ -153,8 +155,6 @@ BaseSection {
id: playNotesOnMidiInputBox
width: parent.width

enabled: root.noteInputModelRef.enableMidiInput

text: qsTrc("appshell/preferences", "Play MIDI input")

navigation.name: "PlayNotesOnMidiInputBox"
Expand Down

0 comments on commit cf360b0

Please sign in to comment.