Skip to content

Commit 0b6b707

Browse files
committed
fix crossfade beta tag
1 parent 5a775b2 commit 0b6b707

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

menu.js

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,26 +45,24 @@ const mainMenuTemplate = (win) => {
4545
...getAllPlugins().map((plugin) => {
4646
const pluginPath = path.join(__dirname, "plugins", plugin, "menu.js")
4747
if (existsSync(pluginPath)) {
48+
let pluginLabel = plugin;
49+
if (pluginLabel === "crossfade") {
50+
pluginLabel = "crossfade [beta]";
51+
}
4852
if (!config.plugins.isEnabled(plugin)) {
49-
return pluginEnabledMenu(plugin, "", true, refreshMenu);
53+
return pluginEnabledMenu(plugin, pluginLabel, true, refreshMenu);
5054
}
5155
const getPluginMenu = require(pluginPath);
5256
return {
53-
label: plugin,
57+
label: pluginLabel,
5458
submenu: [
5559
pluginEnabledMenu(plugin, "Enabled", true, refreshMenu),
5660
{ type: "separator" },
5761
...getPluginMenu(win, config.plugins.getOptions(plugin), refreshMenu),
5862
],
5963
};
6064
}
61-
62-
let pluginLabel = plugin;
63-
if (pluginLabel === "crossfade") {
64-
pluginLabel = "crossfade [beta]";
65-
}
66-
67-
return pluginEnabledMenu(plugin, pluginLabel);
65+
return pluginEnabledMenu(plugin);
6866
}),
6967
],
7068
},

0 commit comments

Comments
 (0)