Commit d003294
committed
fix: do not crash on use close menu
This is more of a workaround than a fix.
But in certain cases (I suspect multiple rerenders) use get_widget
call fails. This workaround did not cause the hook not to work,
which confirms the suspiction.
This is hard to debug, so this is a good enough fix for now.1 parent ca7127c commit d003294
1 file changed
+13
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
12 | 16 | | |
13 | 17 | | |
14 | 18 | | |
| |||
17 | 21 | | |
18 | 22 | | |
19 | 23 | | |
20 | | - | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
21 | 29 | | |
22 | 30 | | |
23 | 31 | | |
| |||
178 | 186 | | |
179 | 187 | | |
180 | 188 | | |
| 189 | + | |
181 | 190 | | |
182 | | - | |
183 | | - | |
| 191 | + | |
184 | 192 | | |
185 | 193 | | |
186 | 194 | | |
| |||
366 | 374 | | |
367 | 375 | | |
368 | 376 | | |
| 377 | + | |
369 | 378 | | |
370 | | - | |
371 | | - | |
372 | | - | |
| 379 | + | |
0 commit comments