mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 21:57:20 +00:00
Add missing text in StatusBar::showColor()
This commit is contained in:
parent
6661c0a32a
commit
fcca96d6a3
@ -624,8 +624,13 @@ void StatusBar::showTip(int msecs, const char *format, ...)
|
||||
|
||||
void StatusBar::showColor(int msecs, const char* text, const app::Color& color)
|
||||
{
|
||||
if (setStatusText(msecs, text)) {
|
||||
IndicatorsGeneration(m_indicators).add(color);
|
||||
if ((base::current_tick() > m_timeout) || (msecs > 0)) {
|
||||
IndicatorsGeneration gen(m_indicators);
|
||||
gen.add(color);
|
||||
if (text)
|
||||
gen.add(text);
|
||||
|
||||
m_timeout = base::current_tick() + msecs;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user