Checking applicationName was not reliable. The worker process uses QGuiApplication while the main process uses QApplication, so use qobject_cast<QApplication*> to determine whether it is safe to access RenderManager/PreviewAutoCacher. This prevents the worker from crashing when loading or switching LUT files.