Browse Source

fix max key length highlight #7

validate-key-value-lenght
kvazar 8 months ago
parent
commit
b8871c52eb
  1. 2
      src/qt/kevaaddkeydialog.cpp

2
src/qt/kevaaddkeydialog.cpp

@ -67,7 +67,7 @@ void KevaAddKeyDialog::onKeyChanged(const QString& key)
keyCounterPalette.setColor( keyCounterPalette.setColor(
QPalette::WindowText, QPalette::WindowText,
keyTextLength > MAX_SCRIPT_ELEMENT_SIZE ? Qt::red : Qt::darkGreen keyTextLength > 255 ? Qt::red : Qt::darkGreen
); );
ui->keyCounter->setPalette( ui->keyCounter->setPalette(

Loading…
Cancel
Save