Show Included settings in view order

This commit is contained in:
Cohee
2024-09-27 01:01:49 +03:00
parent 9612af6e9a
commit eccf253afd

View File

@ -524,8 +524,9 @@ async function renderDetailsContent(detailsContent) {
}
let saveChanges = false;
const sortByViewOrder = (a, b) => Object.keys(FANCY_NAMES).indexOf(a) - Object.keys(FANCY_NAMES).indexOf(b);
const commands = profile.mode === 'cc' ? CC_COMMANDS : TC_COMMANDS;
const settings = commands.reduce((acc, command) => {
const settings = commands.slice().sort(sortByViewOrder).reduce((acc, command) => {
const fancyName = FANCY_NAMES[command];
acc[fancyName] = !profile.exclude.includes(command);
return acc;