From 47729130c9b4b389567943d615593dc8ae4ff6ee Mon Sep 17 00:00:00 2001 From: Araxeus <78568641+Araxeus@users.noreply.github.com> Date: Wed, 23 Feb 2022 17:15:10 +0200 Subject: [PATCH] fix custom titlebar in prompt options --- providers/prompt-options.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/providers/prompt-options.js b/providers/prompt-options.js index 101b4f99..a34d3b1c 100644 --- a/providers/prompt-options.js +++ b/providers/prompt-options.js @@ -1,17 +1,18 @@ const path = require("path"); const is = require("electron-is"); +const { isEnabled } = require("../config/plugins"); const iconPath = path.join(__dirname, "..", "assets", "youtube-music-tray.png"); const customTitlebarPath = path.join(__dirname, "prompt-custom-titlebar.js"); -const promptOptions = is.macOS() ? { - customStylesheet: "dark", - icon: iconPath -} : { +const promptOptions = !is.macOS() && isEnabled("in-app-menu") ? { customStylesheet: "dark", // The following are used for custom titlebar frame: false, customScript: customTitlebarPath, +} : { + customStylesheet: "dark", + icon: iconPath }; module.exports = () => promptOptions;