Removed the plugin attribute, and changed the way the plugins are copied to their destination. This should simplify the packaging, for InnoSetup but also the .zip & protable (which are still missing at this moment)

This commit is contained in:
Robin Krom 2021-05-18 13:51:00 +02:00
commit d429e4f6af
No known key found for this signature in database
GPG key ID: BCC01364F1371490
26 changed files with 189 additions and 151 deletions

View file

@ -35,7 +35,6 @@ namespace Greenshot.Plugin.Photobucket
/// <summary>
/// This is the GreenshotPhotobucketPlugin base code
/// </summary>
[Plugin("Photobucket", true)]
public class PhotobucketPlugin : IGreenshotPlugin
{
private static readonly log4net.ILog Log = log4net.LogManager.GetLogger(typeof(PhotobucketPlugin));
@ -49,7 +48,7 @@ namespace Greenshot.Plugin.Photobucket
GC.SuppressFinalize(this);
}
protected void Dispose(bool disposing)
private void Dispose(bool disposing)
{
if (!disposing) return;
if (_itemPlugInConfig == null) return;
@ -57,6 +56,16 @@ namespace Greenshot.Plugin.Photobucket
_itemPlugInConfig = null;
}
/// <summary>
/// Name of the plugin
/// </summary>
public string Name => "Photobucket";
/// <summary>
/// Specifies if the plugin can be configured
/// </summary>
public bool IsConfigurable => true;
/// <summary>
/// Implementation of the IGreenshotPlugin.Initialize
/// </summary>