mirror of
https://github.com/leozide/leocad
synced 2025-01-29 20:34:50 +01:00
Trigger black/dark colour change warning when automate edge colour is enabled
This commit is contained in:
parent
ca00f431cf
commit
914b47f8ee
1 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue