This repository was archived by the owner on May 12, 2021. It is now read-only.
Commit 4d9f238
committed
Port context menu to electron 11 & electron-context-menu
The old menu was handling more than we needed: it was doing spell-checking,
which has been built into electron since v8.0.0, and it was also overly
complicated. The new version should be a bit easier to read.
Avoiding use of the remote module means that a lot of things have to be
handled via explicit IPC (instead of relying on implicit proxy objects from
the remote module) and especially for the "Copy Message Text" and "Copy
Message Reference" items and such I had to hack a bit. As a result, this
*might* still have race conditions that would mean that text doesn't get
copied, or an outdated version of it.1 parent 8a33480 commit 4d9f238
6 files changed
+470
-210
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | 173 | | |
179 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
180 | 181 | | |
181 | 182 | | |
182 | 183 | | |
| |||
193 | 194 | | |
194 | 195 | | |
195 | 196 | | |
196 | | - | |
197 | | - | |
198 | | - | |
| 197 | + | |
199 | 198 | | |
200 | 199 | | |
201 | 200 | | |
| |||
205 | 204 | | |
206 | 205 | | |
207 | 206 | | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
208 | 213 | | |
209 | 214 | | |
210 | 215 | | |
| |||
222 | 227 | | |
223 | 228 | | |
224 | 229 | | |
225 | | - | |
226 | | - | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
227 | 235 | | |
228 | 236 | | |
229 | 237 | | |
| |||
This file was deleted.
0 commit comments