Drop unused downloadsPath
This commit is contained in:
parent
72c6c57186
commit
4123c12303
2 changed files with 2 additions and 3 deletions
|
@ -333,7 +333,6 @@ function prepareUrl(
|
||||||
serverTrustRoot: config.get<string>('serverTrustRoot'),
|
serverTrustRoot: config.get<string>('serverTrustRoot'),
|
||||||
appStartInitialSpellcheckSetting,
|
appStartInitialSpellcheckSetting,
|
||||||
userDataPath: app.getPath('userData'),
|
userDataPath: app.getPath('userData'),
|
||||||
downloadsPath: app.getPath('downloads'),
|
|
||||||
homePath: app.getPath('home'),
|
homePath: app.getPath('home'),
|
||||||
crashDumpsPath: app.getPath('crashDumps'),
|
crashDumpsPath: app.getPath('crashDumps'),
|
||||||
...moreKeys,
|
...moreKeys,
|
||||||
|
|
|
@ -53,7 +53,7 @@ export type SignalContextType = {
|
||||||
getEnvironment: () => string;
|
getEnvironment: () => string;
|
||||||
getNodeVersion: () => string;
|
getNodeVersion: () => string;
|
||||||
getVersion: () => string;
|
getVersion: () => string;
|
||||||
getPath: (name: 'userData' | 'home' | 'downloads') => string;
|
getPath: (name: 'userData' | 'home') => string;
|
||||||
i18n: LocalizerType;
|
i18n: LocalizerType;
|
||||||
log: LoggerType;
|
log: LoggerType;
|
||||||
renderWindow?: () => void;
|
renderWindow?: () => void;
|
||||||
|
@ -72,7 +72,7 @@ export const SignalContext: SignalContextType = {
|
||||||
getEnvironment,
|
getEnvironment,
|
||||||
getNodeVersion: (): string => String(config.node_version),
|
getNodeVersion: (): string => String(config.node_version),
|
||||||
getVersion: (): string => String(config.version),
|
getVersion: (): string => String(config.version),
|
||||||
getPath: (name: 'userData' | 'home' | 'downloads'): string => {
|
getPath: (name: 'userData' | 'home'): string => {
|
||||||
return String(config[`${name}Path`]);
|
return String(config[`${name}Path`]);
|
||||||
},
|
},
|
||||||
i18n: setupI18n(locale, localeMessages),
|
i18n: setupI18n(locale, localeMessages),
|
||||||
|
|
Loading…
Add table
Reference in a new issue