Commit 305201d
committed
fix: wrap UI updates in fyne.Do for thread safety
Since Fyne 2.6, UI modifications from background goroutines must be
wrapped in fyne.Do() to run on the main thread. The OnTick and OnEnd
callbacks are called from the pomodoro ticker goroutine, causing thread
safety warnings.1 parent 78abb56 commit 305201d
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
131 | 133 | | |
132 | 134 | | |
133 | | - | |
| 135 | + | |
| 136 | + | |
134 | 137 | | |
135 | | - | |
136 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
137 | 141 | | |
138 | 142 | | |
139 | 143 | | |
| |||
0 commit comments