Commit 25fe779
committed
Update CameraProbeWorker.run()
The run() method just emitted success with the camera settings and the actual camera open/close ran on the GUI thread, blocking the UI.
this is now changed to:
- `CameraProbeWorker.run()` — now does the actual camera open/read/close on the background thread and emits a plain dict with the results.
- `_on_probe_success()` — unpacks actual_res/actual_fps from the received dict instead of doing I/O. Everything else (model updates, UI refreshes) stays identical.1 parent 6e8d653 commit 25fe779
1 file changed
Lines changed: 26 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
137 | | - | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
138 | 156 | | |
139 | 157 | | |
140 | 158 | | |
| |||
1221 | 1239 | | |
1222 | 1240 | | |
1223 | 1241 | | |
1224 | | - | |
| 1242 | + | |
1225 | 1243 | | |
1226 | 1244 | | |
1227 | 1245 | | |
1228 | 1246 | | |
1229 | | - | |
| 1247 | + | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
1230 | 1251 | | |
1231 | | - | |
| 1252 | + | |
| 1253 | + | |
1232 | 1254 | | |
1233 | 1255 | | |
1234 | | - | |
1235 | | - | |
1236 | | - | |
1237 | | - | |
1238 | | - | |
1239 | | - | |
1240 | | - | |
1241 | | - | |
1242 | | - | |
1243 | | - | |
1244 | | - | |
1245 | 1256 | | |
1246 | 1257 | | |
1247 | 1258 | | |
| |||
0 commit comments