diff options
author | mehekj <mehek.jethani@gmail.com> | 2022-08-18 14:08:46 -0400 |
---|---|---|
committer | mehekj <mehek.jethani@gmail.com> | 2022-08-18 14:08:46 -0400 |
commit | dd9f736e7b522be12267f34d35fe7e7993229afc (patch) | |
tree | c15de7fc924ded47550707dbd434b917aef85be8 /src/client/views/DocumentDecorations.tsx | |
parent | 330752fa253b61136b78ce7147e09e9d6004f833 (diff) | |
parent | 5a425e5cf18115921ecb4e7cf931e65f45dab8e2 (diff) |
Merge branch 'master' into schema-mehek
Diffstat (limited to 'src/client/views/DocumentDecorations.tsx')
-rw-r--r-- | src/client/views/DocumentDecorations.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/DocumentDecorations.tsx b/src/client/views/DocumentDecorations.tsx index 3544f74b4..6d1397395 100644 --- a/src/client/views/DocumentDecorations.tsx +++ b/src/client/views/DocumentDecorations.tsx @@ -203,7 +203,11 @@ export class DocumentDecorations extends React.Component<{ PanelWidth: number; P if (this._deleteAfterIconify) { views.forEach(iconView => { Doc.setNativeView(iconView.props.Document); - iconView.props.removeDocument?.(iconView.props.Document); + if (iconView.props.Document.isInkMask && iconView.props.Document.activeFrame !== undefined) { + iconView.props.Document.opacity = 0; // bcz: hacky ... allows inkMaks to be "turned off" without removing them from the collection which allows them to function properly in a presenation. + } else { + iconView.props.removeDocument?.(iconView.props.Document); + } }); SelectionManager.DeselectAll(); } |