新增下载目录存在同名的文件时跳过下载此任务设置

This commit is contained in:
lyswhut
2022-12-30 14:00:49 +08:00
parent 18b6f73008
commit e2a1d7b99d
11 changed files with 80 additions and 39 deletions
+30 -30
View File
@@ -53,34 +53,34 @@ export const windowSizeList: WindowSize[] = [
export const navigationUrlWhiteList: RegExp[] = []
// 基础黑白色
export const commonColorNames = [
'--color-000', '--color-050', '--color-100', '--color-200', '--color-300', '--color-400',
'--color-500', '--color-600', '--color-700', '--color-800', '--color-900',
] as const
export const commonLightColorValues = [
'rgb(255, 255, 255)',
'rgb(217,217,217)',
'rgb(184,184,184)',
'rgb(156,156,156)',
'rgb(133,133,133)',
'rgb(113,113,113)',
'rgb(96,96,96)',
'rgb(82,82,82)',
'rgb(70,70,70)',
'rgb(60,60,60)',
'rgb(51,51,51)',
] as const
export const commonDarkColorValues = [
'rgb(11, 11, 11)',
'rgb(60,60,60)',
'rgb(99,99,99)',
'rgb(130,130,130)',
'rgb(155,155,155)',
'rgb(175,175,175)',
'rgb(191,191,191)',
'rgb(204,204,204)',
'rgb(214,214,214)',
'rgb(222,222,222)',
'rgb(229,229,229)',
] as const
// export const commonColorNames = [
// '--color-000', '--color-050', '--color-100', '--color-200', '--color-300', '--color-400',
// '--color-500', '--color-600', '--color-700', '--color-800', '--color-900',
// ] as const
// export const commonLightColorValues = [
// 'rgb(255, 255, 255)',
// 'rgb(217,217,217)',
// 'rgb(184,184,184)',
// 'rgb(156,156,156)',
// 'rgb(133,133,133)',
// 'rgb(113,113,113)',
// 'rgb(96,96,96)',
// 'rgb(82,82,82)',
// 'rgb(70,70,70)',
// 'rgb(60,60,60)',
// 'rgb(51,51,51)',
// ] as const
// export const commonDarkColorValues = [
// 'rgb(11, 11, 11)',
// 'rgb(60,60,60)',
// 'rgb(99,99,99)',
// 'rgb(130,130,130)',
// 'rgb(155,155,155)',
// 'rgb(175,175,175)',
// 'rgb(191,191,191)',
// 'rgb(204,204,204)',
// 'rgb(214,214,214)',
// 'rgb(222,222,222)',
// 'rgb(229,229,229)',
// ] as const
+1
View File
@@ -77,6 +77,7 @@ const defaultSetting: LX.AppSetting = {
'download.savePath': join(homedir(), 'Desktop'),
'download.fileName': '歌名 - 歌手',
'download.maxDownloadNum': 3,
'download.skipExistFile': true,
'download.isDownloadLrc': false,
'download.isDownloadTLrc': false,
'download.isDownloadRLrc': false,
+5
View File
@@ -349,6 +349,11 @@ declare global {
*/
'download.maxDownloadNum': number
/**
* 存在同名文件时跳过下载
*/
'download.skipExistFile': boolean
/**
* 是否下载lrc文件
*/