Use common code formatting style.

This commit is contained in:
SET
2020-11-14 14:46:28 +01:00
parent a7146a07b2
commit a721bb0225
16 changed files with 144 additions and 82 deletions

View File

@@ -49,9 +49,11 @@ void TransientMessageWidget::OnTimer()
void TransientMessageWidget::SetText(const WString& text, bool stack)
{
m_timer.stop();
if (stack) {
if (stack)
{
// Remove the oldest message if stack is full
if (m_stack.size() == m_stackSize) {
if (m_stack.size() == m_stackSize)
{
m_stack.pop_back();
}
m_stack.push_front(text);