Show Included settings in view order

eccf253afd762e7cdeb0c2e1450d45e2710767ba

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +2 -1Showing whitespace changes
public/scripts/extensions/connection-manager/index.js+2 -1
@@ -524,8 +524,9 @@ async function renderDetailsContent(detailsContent) {
524 }524 }
525525
526 let saveChanges = false;526 let saveChanges = false;
527 const sortByViewOrder = (a, b) => Object.keys(FANCY_NAMES).indexOf(a) - Object.keys(FANCY_NAMES).indexOf(b);
527 const commands = profile.mode === 'cc' ? CC_COMMANDS : TC_COMMANDS;528 const commands = profile.mode === 'cc' ? CC_COMMANDS : TC_COMMANDS;
528 const settings = commands.reduce((acc, command) => {529 const settings = commands.slice().sort(sortByViewOrder).reduce((acc, command) => {
529 const fancyName = FANCY_NAMES[command];530 const fancyName = FANCY_NAMES[command];
530 acc[fancyName] = !profile.exclude.includes(command);531 acc[fancyName] = !profile.exclude.includes(command);
531 return acc;532 return acc;