Fix bug in naming animated screenshots since the change to PNG

This commit is contained in:
Dale Glass 2022-07-13 23:56:20 +02:00
parent ca142c2ff3
commit eb3bb82e0c

View file

@ -45,6 +45,7 @@ void SnapshotAnimated::saveSnapshotAnimated(QString pathStill, float aspectRatio
SnapshotAnimated::snapshotStillPath = pathStill; SnapshotAnimated::snapshotStillPath = pathStill;
SnapshotAnimated::snapshotAnimatedPath = pathStill; SnapshotAnimated::snapshotAnimatedPath = pathStill;
SnapshotAnimated::snapshotAnimatedPath.replace("jpg", "gif"); SnapshotAnimated::snapshotAnimatedPath.replace("jpg", "gif");
SnapshotAnimated::snapshotAnimatedPath.replace("png", "gif");
// Ensure the snapshot timer is Precise (attempted millisecond precision) // Ensure the snapshot timer is Precise (attempted millisecond precision)
SnapshotAnimated::snapshotAnimatedTimer->setTimerType(Qt::PreciseTimer); SnapshotAnimated::snapshotAnimatedTimer->setTimerType(Qt::PreciseTimer);
@ -148,7 +149,7 @@ void SnapshotAnimated::processFrames() {
GifEnd(&(SnapshotAnimated::snapshotAnimatedGifWriter)); GifEnd(&(SnapshotAnimated::snapshotAnimatedGifWriter));
SnapshotAnimated::clearTempVariables(); SnapshotAnimated::clearTempVariables();
// Update the "Share" dialog with the processed GIF. // Update the "Share" dialog with the processed GIF.
emit SnapshotAnimated::snapshotAnimatedDM->processingGifCompleted(SnapshotAnimated::snapshotAnimatedPath); emit SnapshotAnimated::snapshotAnimatedDM->processingGifCompleted(SnapshotAnimated::snapshotAnimatedPath);
} }