Skip to content
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

Misc cleanup #588

Merged
merged 4 commits into from
Jan 15, 2019
Merged

Misc cleanup #588

merged 4 commits into from
Jan 15, 2019

Conversation

ralphtheninja
Copy link
Member

No description provided.

* Add event listener for DC_EVENT_CONFIGURE_PROGRESS instead of checking for 2041 magic number
* emit 'DC_EVENT_LOGIN_FAILED' so ipc can attach event listener to this instead of checking magic number 0
ipc.on('show', () => main.show())
ipc.on('setAllowNav', (e, ...args) => menu.setAllowNav(...args))
ipc.on('chooseLanguage', (e, locale) => {
ipcMain.on('setAspectRatio', (e, ...args) => main.setAspectRatio(...args))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's easier to grep for ipcMain to see which ipc event listeners we have in the main process

@Jikstra Jikstra merged commit b9f1532 into master Jan 15, 2019
@Jikstra Jikstra deleted the misc-cleanup branch January 15, 2019 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants