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

refactor: use ipcMainEvents constant #2250

Merged
merged 3 commits into from
Oct 3, 2022
Merged

Conversation

hacdias
Copy link
Member

@hacdias hacdias commented Sep 1, 2022

Closes #2115

@hacdias hacdias requested review from lidel and SgtPooki September 1, 2022 12:49
@hacdias hacdias changed the title chore: remove old event handler removed in #1425 refactor: use ipcMainEvents constant Sep 1, 2022
Comment on lines -174 to -180
ipcMain.on('config.get', () => {
window.webContents.send('config.changed', {
platform: os.platform(),
config: store.store
})
})

Copy link
Member

Choose a reason for hiding this comment

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

do we really want to remove this? Was it unused?

Copy link
Member Author

@hacdias hacdias Sep 26, 2022

Choose a reason for hiding this comment

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

Yes, it is unused and its functionality was removed in #1425 (2 years ago). I seem to have forgotten to remove this one. It was used back when the IPFS Desktop settings were presented in the Web UI. Nowadays, they're under the Preferences submenu.

@hacdias hacdias requested a review from SgtPooki September 26, 2022 10:03
@hacdias hacdias requested a review from a team as a code owner September 26, 2022 10:03
@hacdias
Copy link
Member Author

hacdias commented Oct 3, 2022

@SgtPooki I need your review again 😄

@SgtPooki SgtPooki merged commit 39754b9 into main Oct 3, 2022
@SgtPooki SgtPooki deleted the refactor/use-evts-const branch October 3, 2022 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

chore: All ipcMain.emit eventNames should be standardized and typed
2 participants