Trigger black/dark colour change warning when automate edge colour is enabled

This commit is contained in:
Trevor SANDY 2021-01-25 22:16:44 +01:00
parent ca00f431cf
commit 914b47f8ee

View file

@ -171,11 +171,27 @@ void lcAutomateEdgeColorDialog::ColorButtonClicked()
}
else if (Button == BlackEdgeColorButton)
{
if (lcGetPreferences().mAutomateEdgeColor)
{
QMessageBox msgBox;
msgBox.setText("Automate edge colour appears to be enabled.<br>"
"Black parts edge color setting will not be accessible.");
if (msgBox.exec() != QMessageBox::Accepted)
return;
}
Title = tr("Select Black Edge Color");
Color = &mBlackEdgeColor;
}
else if (Button == DarkEdgeColorButton)
{
if (lcGetPreferences().mAutomateEdgeColor)
{
QMessageBox msgBox;
msgBox.setText("Automate edge colour appears to be enabled.<br>"
"Dark parts edge color setting will not be accessible.");
if (msgBox.exec() != QMessageBox::Accepted)
return;
}
Title = tr("Select Dark Edge Color");
Color = &mDarkEdgeColor;
}