Fixed bug #124, I think I understood

Also made sure the office plugin is not configurable, as it shouldn't be.
This commit is contained in:
Krom, Robertus 2020-02-11 11:11:10 +01:00
commit 9578a46296
3 changed files with 4 additions and 3 deletions

View file

@ -40,7 +40,7 @@ namespace Greenshot.Destinations {
static EmailDestination() {
// Logic to decide what email implementation we use
if (EmailConfigHelper.HasMapi()) {
_isActiveFlag = true;
_isActiveFlag = false;
_mapiClient = EmailConfigHelper.GetMapiClient();
if (!string.IsNullOrEmpty(_mapiClient)) {
// Active as we have a mapi client, can be disabled later

View file

@ -107,7 +107,8 @@ namespace GreenshotOfficePlugin {
/// <summary>
/// Implementation of the IPlugin.Configure
/// </summary>
public virtual void Configure() {
public void Configure() {
throw new NotImplementedException();
}
}
}

View file

@ -28,7 +28,7 @@ using System.Runtime.InteropServices;
// associated with an assembly.
[assembly: AssemblyDescription("A plugin to export images to Office applications")]
// The PluginAttribute describes the "entryType" and if the plugin is configurable
[assembly: Plugin("GreenshotOfficePlugin.OfficePlugin", true)]
[assembly: Plugin("GreenshotOfficePlugin.OfficePlugin", false)]
// This sets the default COM visibility of types in the assembly to invisible.
// If you need to expose a type to COM, use [ComVisible(true)] on that type.