ToastQueue: fix formatting a bit.

This commit is contained in:
Guillaume Jacquemin 2021-07-28 14:12:43 +02:00
parent 14c5a76891
commit 52b60ff2a5
1 changed files with 3 additions and 1 deletions

View File

@ -138,7 +138,9 @@ void ToastQueue::draw(Vector2i viewport_size) {
break;
}
ImGui::SameLine();
if(current->type() != Toast::Type::Default) {
ImGui::SameLine();
}
if(current->message().length() > 127) {
ImGui::TextColored(colour, "%.*s...", 127, current->message().c_str());