ToastQueue: fix formatting a bit.

This commit is contained in:
Guillaume Jacquemin 2021-07-28 14:12:43 +02:00
parent 14c5a76891
commit 52b60ff2a5

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());