mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
Fixed plugin loading
Moved all office interop types in their own file.
This commit is contained in:
parent
80d8f51fc5
commit
bef29df3db
125 changed files with 1628 additions and 1373 deletions
|
@ -18,18 +18,19 @@
|
|||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Diagnostics;
|
||||
using System.Drawing;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
using Greenshot.IniFile;
|
||||
using Greenshot.Plugin;
|
||||
using GreenshotPlugin.Core;
|
||||
using System.ComponentModel;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace ExternalCommand {
|
||||
namespace GreenshotExternalCommandPlugin {
|
||||
/// <summary>
|
||||
/// Description of OCRDestination.
|
||||
/// </summary>
|
||||
|
@ -63,12 +64,9 @@ namespace ExternalCommand {
|
|||
config.RunInbackground.Add(_presetCommand, true);
|
||||
}
|
||||
bool runInBackground = config.RunInbackground[_presetCommand];
|
||||
string fullPath = captureDetails.Filename;
|
||||
if (fullPath == null) {
|
||||
fullPath = ImageOutput.SaveNamedTmpFile(surface, captureDetails, outputSettings);
|
||||
}
|
||||
string fullPath = captureDetails.Filename ?? ImageOutput.SaveNamedTmpFile(surface, captureDetails, outputSettings);
|
||||
|
||||
string output;
|
||||
string output;
|
||||
string error;
|
||||
if (runInBackground) {
|
||||
Thread commandThread = new Thread(delegate()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue