Skip to content

Commit 5cffb6f

Browse files
authored
Merge pull request #619 from Araxeus/fix-prompt-options
fix custom titlebar in prompt options
2 parents ff39ddb + 4772913 commit 5cffb6f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

providers/prompt-options.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
const path = require("path");
22
const is = require("electron-is");
3+
const { isEnabled } = require("../config/plugins");
34

45
const iconPath = path.join(__dirname, "..", "assets", "youtube-music-tray.png");
56
const customTitlebarPath = path.join(__dirname, "prompt-custom-titlebar.js");
67

7-
const promptOptions = is.macOS() ? {
8-
customStylesheet: "dark",
9-
icon: iconPath
10-
} : {
8+
const promptOptions = !is.macOS() && isEnabled("in-app-menu") ? {
119
customStylesheet: "dark",
1210
// The following are used for custom titlebar
1311
frame: false,
1412
customScript: customTitlebarPath,
13+
} : {
14+
customStylesheet: "dark",
15+
icon: iconPath
1516
};
1617

1718
module.exports = () => promptOptions;

0 commit comments

Comments
 (0)