Merge pull request #12130 from cain-kilgore/21665

WL 21665 - Window.takeSecondaryCameraSnapshot() should emit a stillSnapshotTaken signal
This commit is contained in:
MiladNazeri 2018-01-10 12:06:58 -08:00 committed by GitHub
commit 2220b976dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6807,7 +6807,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);
});
}