lostdesign / linked

🧾 Daily journaling without distraction. An easy, distraction-free way to record your thoughts, declutter your mind and keep the things you want to remember. Join the discord at https://discord.gg/uNjJzZvccr
https://uselinked.com
GNU General Public License v3.0
893 stars 66 forks source link

♻️ add .removeListeners() for ipcRenderer #86

Closed lostdesign closed 2 years ago

lostdesign commented 3 years ago

All ipcRenderer listeners should be removed in beforeDestoryed() in order to guarantee no duplicate event listeners being registered, which may fire more than once.

This however cannot be implemented before 1.4.x as app gets a big update which changes how the days and views are handled.

see ipcRenderer.removeAllListeners(channel)

lostdesign commented 2 years ago

Not needed anymore.