mirror of
https://github.com/lubosz/overte.git
synced 2025-08-08 03:08:00 +02:00
WL 21665 - Window.takeSecondaryCameraSnapshot() should emit a stillSnapshotTaken signal
This commit is contained in:
parent
c33c637f07
commit
38afc5a25b
1 changed files with 2 additions and 1 deletions
|
@ -6788,7 +6788,8 @@ void Application::takeSnapshot(bool notify, bool includeAnimated, float aspectRa
|
||||||
|
|
||||||
void Application::takeSecondaryCameraSnapshot() {
|
void Application::takeSecondaryCameraSnapshot() {
|
||||||
postLambdaEvent([this] {
|
postLambdaEvent([this] {
|
||||||
Snapshot::saveSnapshot(getActiveDisplayPlugin()->getSecondaryCameraScreenshot());
|
QString snapshotPath = Snapshot::saveSnapshot(getActiveDisplayPlugin()->getSecondaryCameraScreenshot());
|
||||||
|
emit DependencyManager::get<WindowScriptingInterface>()->stillSnapshotTaken(snapshotPath, true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue