Fixed issues in the Preferences:

1) Show a single note in the binary path.
  2) Resolved issue in the keyboard shortcut.

refs #7149
This commit is contained in:
Nikhil Mohite
2022-03-29 16:27:33 +05:30
committed by Akshay Joshi
parent 02e799c917
commit 931a399890
3 changed files with 13 additions and 9 deletions

View File

@@ -233,6 +233,7 @@ export default function PreferencesComponent({ ...props }) {
});
}, []);
function setPreferences(node, subNode, nodeData, preferencesValues, preferencesData) {
let addBinaryPathNote = false;
subNode.preferences.forEach((element) => {
let note = '';
let type = getControlMappedForType(element.type);
@@ -247,7 +248,10 @@ export default function PreferencesComponent({ ...props }) {
element.editable = false;
element.disabled = true;
preferencesValues[element.id] = JSON.parse(element.value);
addNote(node, subNode, nodeData, preferencesData, note);
if(addBinaryPathNote) {
addNote(node, subNode, nodeData, preferencesData, note);
}
addBinaryPathNote = true;
}
else if (type == 'select') {
setControlProps(element);