mirror of
https://gitlab.com/kelteseth/ScreenPlay.git
synced 2024-11-07 03:22:33 +01:00
Fix error z level
Fix conversion of file missinterpreted as an error
This commit is contained in:
parent
ac8b360ecd
commit
c16edb7a84
@ -78,6 +78,7 @@ Item {
|
||||
|
||||
Item {
|
||||
id: wrapperSteps
|
||||
z:10
|
||||
anchors.fill: parent
|
||||
|
||||
Text {
|
||||
@ -398,11 +399,13 @@ Item {
|
||||
PropertyChanges {
|
||||
target: wrapperSteps
|
||||
opacity: 0
|
||||
z:0
|
||||
}
|
||||
PropertyChanges {
|
||||
target: wrapperError
|
||||
opacity: 1
|
||||
}
|
||||
|
||||
}
|
||||
]
|
||||
transitions: [
|
||||
|
@ -214,10 +214,13 @@ bool Create::createWallpaperVideoPreview(CreateWallpaperData& createWallpaperDat
|
||||
qDebug() << tmpErr;
|
||||
qDebug() << proConvertPreviewMP4.data()->readAllStandardOutput();
|
||||
qDebug() << proConvertPreviewMP4.data()->readAll();
|
||||
QFile previewVideo(createWallpaperData.exportPath + "/preview.mp4");
|
||||
if (!previewVideo.exists() && !(previewVideo.size() > 0)) {
|
||||
emit processOutput(tmpErr);
|
||||
emit createWallpaperStateChanged(Create::State::ConvertingPreviewVideoError);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// qDebug() << proConvertPreviewMP4.data()->program() << proConvertPreviewMP4.data()->arguments();
|
||||
// qDebug() << "Done converting video to preview" << proConvertPreviewMP4.data()->readAll() << "\n"
|
||||
// << proConvertPreviewMP4.data()->readAllStandardError();
|
||||
@ -251,9 +254,12 @@ bool Create::createWallpaperVideoPreview(CreateWallpaperData& createWallpaperDat
|
||||
proConvertGif.data()->start();
|
||||
proConvertGif.data()->waitForFinished(-1);
|
||||
if (!proConvertGif.data()->readAllStandardError().isEmpty()) {
|
||||
QFile previewGif(createWallpaperData.exportPath + "/preview.gif");
|
||||
if (!previewGif.exists() && !(previewGif.size() > 0)) {
|
||||
emit createWallpaperStateChanged(Create::State::ConvertingPreviewGifError);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// qDebug() << proConvertGif.data()->program() << proConvertGif.data()->arguments();
|
||||
// qDebug() << "Done converting video to preview" << proConvertGif.data()->readAll() << "\n"
|
||||
|
Loading…
Reference in New Issue
Block a user