mirror of
https://github.com/greenshot/greenshot
synced 2025-08-14 02:37:03 -07:00
BUG-2056: A better fix for the issue, there was already something build in. [skip ci]
This commit is contained in:
parent
c77e77578d
commit
89ae9489d2
4 changed files with 17 additions and 13 deletions
|
@ -56,14 +56,8 @@ namespace ExternalCommand {
|
|||
public override ExportInformation ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails) {
|
||||
ExportInformation exportInformation = new ExportInformation(Designation, Description);
|
||||
SurfaceOutputSettings outputSettings = new SurfaceOutputSettings();
|
||||
outputSettings.PreventGreenshotFormat();
|
||||
|
||||
// BUG-2056 reported a logical issue, using greenshot format as the default causes issues with the external commands.
|
||||
// If OutputFormat is Greenshot, use PNG instead.
|
||||
if (outputSettings.Format == OutputFormat.greenshot)
|
||||
{
|
||||
outputSettings.Format = OutputFormat.png;
|
||||
}
|
||||
|
||||
if (_presetCommand != null) {
|
||||
if (!config.RunInbackground.ContainsKey(_presetCommand)) {
|
||||
config.RunInbackground.Add(_presetCommand, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue