diff --git a/repo/core/enhancerMenu.js b/repo/core/enhancerMenu.js index 7b3b706..7242f03 100644 --- a/repo/core/enhancerMenu.js +++ b/repo/core/enhancerMenu.js @@ -587,6 +587,13 @@ window['__start'] = async () => { const $options = mod.elem.querySelector('.options'); if ($options) for (const opt of mod.options) { + if ( + Object.keys(opt.platformOverwrite || {}).some( + (platform) => process.platform === platform + ) + ) { + continue; + } const $opt = createOption(opt, mod.id); if (opt.type === 'color') { const $preview = $opt.querySelector('input'); diff --git a/repo/core/mod.js b/repo/core/mod.js index 4772901..61cd942 100644 --- a/repo/core/mod.js +++ b/repo/core/mod.js @@ -46,6 +46,9 @@ module.exports = { it can be re-shown by clicking the tray icon or using the hotkey.`, type: 'toggle', value: true, + platformOverwrite: { + darwin: true, + }, }, { key: 'frameless', @@ -53,6 +56,9 @@ module.exports = { description: `replace the native titlebar with buttons inset into the app.`, type: 'toggle', value: true, + platformOverwrite: { + darwin: false, + }, }, { key: 'tiling_mode', diff --git a/repo/tweaks/mod.js b/repo/tweaks/mod.js index 0c538fb..7d7e839 100644 --- a/repo/tweaks/mod.js +++ b/repo/tweaks/mod.js @@ -22,6 +22,9 @@ module.exports = { used to drag/move the window.`, type: 'input', value: 15, + platformOverwrite: { + darwin: 0, + }, }, { key: 'responsive_breakpoint',