mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 02:31:45 +00:00
Discord add menu button for clearing activity
This commit is contained in:
@ -61,3 +61,5 @@ module.exports = (win, {activityTimoutEnabled, activityTimoutTime}) => {
|
|||||||
rpc.login({ clientId }).catch(console.error);
|
rpc.login({ clientId }).catch(console.error);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
module.exports.clear = () => rpc.clearActivity();
|
||||||
|
|||||||
@ -1,7 +1,14 @@
|
|||||||
const { setOptions } = require("../../config/plugins");
|
const { setOptions } = require("../../config/plugins");
|
||||||
const { edit } = require("../../config");
|
const { edit } = require("../../config");
|
||||||
|
const { clear } = require("./back");
|
||||||
|
|
||||||
module.exports = (win, options) => [
|
module.exports = (win, options) => [
|
||||||
|
{
|
||||||
|
label: "Clear activity",
|
||||||
|
click: () => {
|
||||||
|
clear();
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "Clear activity after timeout",
|
label: "Clear activity after timeout",
|
||||||
type: "checkbox",
|
type: "checkbox",
|
||||||
|
|||||||
Reference in New Issue
Block a user