Showing the changes to interface/src/Application.cpp (1 of 6 files). Show all
Unified · Split
| @@ -5440,7 +5440,14 @@ void Application::takeSnapshot(bool notify, bool includeAnimated, float aspectRa · 5439 unmodified lines | ||
| 5440 | 5440 | // Get a screenshot and save it |
| 5441 | 5441 | QString path = Snapshot::saveSnapshot(getActiveDisplayPlugin()->getScreenshot(aspectRatio)); |
| 5442 | 5442 | |
| 5443 | − SnapshotAnimated::saveSnapshotAnimated(includeAnimated, path, aspectRatio, qApp, DependencyManager::get<WindowScriptingInterface>()); | |
| 5443 | + // If we're not doing an animated snapshot as well... | |
| 5444 | + if (!includeAnimated) { | |
| 5445 | + // Tell the dependency manager that the capture of the still snapshot has taken place. | |
| 5446 | + emit DependencyManager::get<WindowScriptingInterface>()->snapshotTaken(path, "", notify); | |
| 5447 | + } else { | |
| 5448 | + // Get an animated GIF snapshot and save it | |
| 5449 | + SnapshotAnimated::saveSnapshotAnimated(path, aspectRatio, qApp, DependencyManager::get<WindowScriptingInterface>()); | |
| 5450 | + } | |
| 5444 | 5451 | }); |
| 5445 | 5452 | } |
| 5446 | 5453 | void Application::shareSnapshot(const QString& path) { |