mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 14:03:23 -07:00
Fixed some problems exporting to word & powerpoint
git-svn-id: http://svn.code.sf.net/p/greenshot/code/trunk@1751 7dccd23d-a4a3-4e1f-8c07-b4c1b4018ab4
This commit is contained in:
parent
c6099649f6
commit
1e436b69ee
9 changed files with 90 additions and 38 deletions
|
@ -112,13 +112,13 @@ namespace GreenshotPlugin.Core {
|
|||
/// </summary>
|
||||
/// <param name="destinationClickHandler"></param>
|
||||
/// <returns>ToolStripMenuItem</returns>
|
||||
public virtual ToolStripMenuItem GetMenuItem(EventHandler destinationClickHandler) {
|
||||
public virtual ToolStripMenuItem GetMenuItem(bool addDynamics, EventHandler destinationClickHandler) {
|
||||
ToolStripMenuItem basisMenuItem;
|
||||
basisMenuItem = new ToolStripMenuItem(Description);
|
||||
basisMenuItem.Image = DisplayIcon;
|
||||
basisMenuItem.Tag = this;
|
||||
basisMenuItem.Text = Description;
|
||||
if (isDynamic) {
|
||||
if (isDynamic && addDynamics) {
|
||||
basisMenuItem.DropDownOpening += delegate (object source, EventArgs eventArgs) {
|
||||
if (basisMenuItem.DropDownItems.Count == 0) {
|
||||
List<IDestination> subDestinations = new List<IDestination>();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue