WL 21665 - Window.takeSecondaryCameraSnapshot() should emit a stillSnapshotTaken signal

This commit is contained in:
Cain Kilgore 2018-01-10 11:31:46 +00:00
parent c33c637f07
commit 38afc5a25b

View file

@ -6788,7 +6788,8 @@ void Application::takeSnapshot(bool notify, bool includeAnimated, float aspectRa
void Application::takeSecondaryCameraSnapshot() {
postLambdaEvent([this] {
Snapshot::saveSnapshot(getActiveDisplayPlugin()->getSecondaryCameraScreenshot());
QString snapshotPath = Snapshot::saveSnapshot(getActiveDisplayPlugin()->getSecondaryCameraScreenshot());
emit DependencyManager::get<WindowScriptingInterface>()->stillSnapshotTaken(snapshotPath, true);
});
}