B2021-083: Create PDF not available on Ribbon for viewers

This commit is contained in:
Kathy Ruffing 2021-08-24 13:25:17 +00:00
parent 8dbdfe55de
commit d6c42e144b

View File

@ -700,7 +700,9 @@ namespace Volian.Controls.Library
if (_MyStepRTB == null) return; if (_MyStepRTB == null) return;
// if we are in view mode or the edit window is empty, then don't allow inserting steps/substeps, // if we are in view mode or the edit window is empty, then don't allow inserting steps/substeps,
// page breaks, copy step, nor creating a pdf // page breaks, copy step, nor creating a pdf
bool allow = (_MyStepRTB.TextLength > 0 && (MyEditItem == null || MyEditItem.MyStepPanel.VwMode == E_ViewMode.Edit)); // B2021-083: Create PDF button on ribbon was disabled for reviewer (removed code). Note that this allow
// is only used for the Create Pdf button now - code has changed for any other use.
bool allow = (_MyStepRTB.TextLength > 0);
//// turn ribbon items on/off base on whether there is text in the edit window //// turn ribbon items on/off base on whether there is text in the edit window
//rbnSiblings.Enabled = rbnParagraph.Enabled = rbnStepParts.Enabled = allow; //rbnSiblings.Enabled = rbnParagraph.Enabled = rbnStepParts.Enabled = allow;