mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 18:21:47 +00:00
Discord timeout 0 clear activity directly
This commit is contained in:
@ -38,6 +38,12 @@ module.exports = (win, {activityTimoutEnabled, activityTimoutTime}) => {
|
|||||||
// stop the clear activity timout
|
// stop the clear activity timout
|
||||||
clearTimeout(clearActivity);
|
clearTimeout(clearActivity);
|
||||||
|
|
||||||
|
// clear directly if timeout is 0
|
||||||
|
if (songInfo.isPaused && activityTimoutEnabled && activityTimoutTime === 0) {
|
||||||
|
rpc.clearActivity().catch(console.error);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (songInfo.isPaused) {
|
if (songInfo.isPaused) {
|
||||||
// Add an idle icon to show that the song is paused
|
// Add an idle icon to show that the song is paused
|
||||||
activityInfo.smallImageKey = "idle";
|
activityInfo.smallImageKey = "idle";
|
||||||
|
|||||||
Reference in New Issue
Block a user