mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-11 10:31:47 +00:00
feat(discord): add Hide GitHub link Button (#1293)
This commit is contained in:
@ -106,6 +106,7 @@ const defaultConfig = {
|
|||||||
activityTimoutEnabled: true, // If enabled, the discord rich presence gets cleared when music paused after the time specified below
|
activityTimoutEnabled: true, // If enabled, the discord rich presence gets cleared when music paused after the time specified below
|
||||||
activityTimoutTime: 10 * 60 * 1000, // 10 minutes
|
activityTimoutTime: 10 * 60 * 1000, // 10 minutes
|
||||||
listenAlong: true, // Add a "listen along" button to rich presence
|
listenAlong: true, // Add a "listen along" button to rich presence
|
||||||
|
hideGitHubButton: false, // Disable the "View App On GitHub" button
|
||||||
hideDurationLeft: false, // Hides the start and end time of the song to rich presence
|
hideDurationLeft: false, // Hides the start and end time of the song to rich presence
|
||||||
},
|
},
|
||||||
'downloader': {
|
'downloader': {
|
||||||
|
|||||||
@ -55,6 +55,15 @@ export default (win: Electron.BrowserWindow, options: DiscordOptions, refreshMen
|
|||||||
setMenuOptions('discord', options);
|
setMenuOptions('discord', options);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Hide GitHub link Button',
|
||||||
|
type: 'checkbox',
|
||||||
|
checked: options.hideGitHubButton,
|
||||||
|
click(item: Electron.MenuItem) {
|
||||||
|
options.hideGitHubButton = item.checked;
|
||||||
|
setMenuOptions('discord', options);
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Hide duration left',
|
label: 'Hide duration left',
|
||||||
type: 'checkbox',
|
type: 'checkbox',
|
||||||
|
|||||||
Reference in New Issue
Block a user