-
-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Split config #578
Split config #578
Conversation
When we're already at it, should we add height and width arguments to rc to add like a |
@@ -176,12 +180,6 @@ function toggleDevTools () { | |||
} | |||
} | |||
|
|||
function getIconPath () { | |||
return process.platform === 'win32' | |||
? config.APP_ICON + '.ico' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Broken. Lets fix this when we need .ico file for windows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made a TODO comment about it in application-constants.js
.
const log = require('../../logger').getLogger('renderer/state') | ||
|
||
const SAVE_DEBOUNCE_INTERVAL = 1000 | ||
|
||
appConfig.filePath = path.join(config.CONFIG_PATH, 'config.json') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not needed, appConfig.filePath
defaults to /path/to/config.json
Basic rule of thumb: Never add something that might be useful. We should add default values to |
I just realized that "splitting" here basically meant renaming |
Ticks off final checkbox in #550