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,6 +18,7 @@
|
|||
* 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.Diagnostics;
|
||||
using System.IO;
|
||||
|
@ -29,7 +30,7 @@ using GreenshotPlugin.Effects;
|
|||
|
||||
//using Microsoft.Win32;
|
||||
|
||||
namespace GreenshotOCR {
|
||||
namespace GreenshotOCRPlugin {
|
||||
/// <summary>
|
||||
/// OCR Plugin Greenshot
|
||||
/// </summary>
|
||||
|
@ -45,14 +46,13 @@ namespace GreenshotOCR {
|
|||
GC.SuppressFinalize(this);
|
||||
}
|
||||
|
||||
protected virtual void Dispose(bool disposing) {
|
||||
if (disposing) {
|
||||
if (_ocrMenuItem != null) {
|
||||
_ocrMenuItem.Dispose();
|
||||
_ocrMenuItem = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
protected void Dispose(bool disposing)
|
||||
{
|
||||
if (!disposing) return;
|
||||
if (_ocrMenuItem == null) return;
|
||||
_ocrMenuItem.Dispose();
|
||||
_ocrMenuItem = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Implementation of the IGreenshotPlugin.Initialize
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue