diff --git a/PluginExample/SimpleOutputDestination.cs b/PluginExample/SimpleOutputDestination.cs index 5b6d23fcc..5efff1203 100644 --- a/PluginExample/SimpleOutputDestination.cs +++ b/PluginExample/SimpleOutputDestination.cs @@ -55,7 +55,8 @@ namespace PluginExample { } } - public override bool ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails) { + public override ExportInformation ExportCapture(bool manuallyInitiated, ISurface surface, ICaptureDetails captureDetails) { + ExportInformation exportInformation = new ExportInformation(this.Designation, this.Description); CoreConfiguration config = IniConfig.GetIniSection(); OutputSettings outputSettings = new OutputSettings(); @@ -66,8 +67,10 @@ namespace PluginExample { host.SaveToStream(image, stream, outputSettings); } } - MessageBox.Show("Saved test file to: " + filePath); - return true; + exportInformation.Filepath = filePath; + exportInformation.ExportMade = true; + ProcessExport(exportInformation, surface); + return exportInformation; } } }