Fix full -c block
This commit is contained in:
@@ -75,12 +75,13 @@ void FlameshotDBusAdapter::fullScreen(
|
||||
Q_EMIT captureFailed(id);
|
||||
return;
|
||||
}
|
||||
if(toClipboard) {
|
||||
ResourceExporter().captureToClipboard(p);
|
||||
}
|
||||
// This needs to be done first in order to prevent a severe block
|
||||
if(!path.isEmpty()) {
|
||||
ResourceExporter().captureToFile(p, path);
|
||||
}
|
||||
if(toClipboard) {
|
||||
ResourceExporter().captureToClipboard(p);
|
||||
}
|
||||
QByteArray byteArray;
|
||||
QBuffer buffer(&byteArray);
|
||||
p.save(&buffer, "PNG");
|
||||
|
||||
Reference in New Issue
Block a user