Electron 456 (#363)

- change memory refresh text
- fix regression on user data path arg
This commit is contained in:
Vishwas Shashidhar 2018-05-09 16:41:26 +05:30 committed by GitHub
parent 0a66fc90f2
commit d60c1cc374
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -232,7 +232,7 @@ function setupThenOpenMainWindow() {
// launching the app. Mostly used for running automation tests with
// multiple instances
let customDataArg = getCmdLineArg(process.argv, '--userDataPath=', false);
let customDataFolder = customDataArg.substring(customDataArg.indexOf('=') + 1);
let customDataFolder = customDataArg && customDataArg.substring(customDataArg.indexOf('=') + 1);
if (customDataArg && customDataFolder) {
app.setPath('userData', customDataFolder);

View File

@ -325,7 +325,7 @@ function getTemplate(app) {
// Window - View menu -> memoryRefresh
template[index].submenu.push({
label: 'Memory Refresh',
label: 'Refresh app when idle',
type: 'checkbox',
checked: memoryRefresh,
click: function(item) {