| 48 | static atomic<bool> imageViewerIsReady = false; |
| 49 | |
| 50 | void scheduleToMainThread(const function<void()>& fun) { |
| 51 | if (imageViewerIsReady) { |
| 52 | sImageViewer->scheduleToUiThread(fun); |
| 53 | } |
| 54 | } |
| 55 | |
| 56 | void redrawWindow() { |
| 57 | if (imageViewerIsReady) { |
no test coverage detected