mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-13 03:11:46 +00:00
Add advanced configuration menu for notifications
This commit is contained in:
13
plugins/notifications/menu.js
Normal file
13
plugins/notifications/menu.js
Normal file
@ -0,0 +1,13 @@
|
||||
const {urgencyLevels, setUrgency} = require("./utils");
|
||||
|
||||
module.exports = (win, options) => [
|
||||
{
|
||||
label: "Notification Priority",
|
||||
submenu: urgencyLevels.map(level => ({
|
||||
label: level.name,
|
||||
type: "radio",
|
||||
checked: options.urgency === level.value,
|
||||
click: () => setUrgency(options, level.value)
|
||||
})),
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user