Merge pull request #10 from kvazar-network/validate-key-value-lenght

fix max key length highlight #7
This commit is contained in:
d47081 2024-03-30 08:06:59 +02:00 committed by GitHub
commit 8b81652d00
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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