NOISSUE add setting capes, tweak missing profile message, fix cape IDs
This commit is contained in:
parent
94fd9a3535
commit
1b68d51da6
11 changed files with 317 additions and 130 deletions
|
@ -73,7 +73,17 @@ void LoginDialog::on_passTextBox_textEdited(const QString &newText)
|
|||
void LoginDialog::onTaskFailed(const QString &reason)
|
||||
{
|
||||
// Set message
|
||||
ui->label->setText("<span style='color:red'>" + reason + "</span>");
|
||||
auto lines = reason.split('\n');
|
||||
QString processed;
|
||||
for(auto line: lines) {
|
||||
if(line.size()) {
|
||||
processed += "<font color='red'>" + line + "</font>\n";
|
||||
}
|
||||
else {
|
||||
processed += '\n';
|
||||
}
|
||||
}
|
||||
ui->label->setText(processed);
|
||||
|
||||
// Re-enable user-interaction
|
||||
setUserInputsEnabled(true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue