Disable menu items in non-writable containers
- Issue MatterHackers/MCCentral#2265 Edit button doesn't appear to work in Root
This commit is contained in:
parent
9cd240579b
commit
cdd18ff1b8
2 changed files with 75 additions and 64 deletions
|
|
@ -42,10 +42,8 @@ namespace MatterHackers.MatterControl.PrintQueue
|
|||
|
||||
public Action<IEnumerable<ILibraryItem>, ListView> Action { get; set; }
|
||||
|
||||
public bool AllowMultiple { get; set; } = false;
|
||||
public bool AllowProtected { get; set; } = false;
|
||||
public bool AllowContainers { get; set; } = false;
|
||||
public bool AlwaysEnabled { get; set; } = false;
|
||||
public Func<IEnumerable<ListViewItem>, ListView, bool> IsEnabled { get; set; }
|
||||
|
||||
internal PopupMenu.MenuItem MenuItem { get; set; }
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue