allow for message_delay_time = "0"
This commit is contained in:
@@ -172,14 +172,17 @@ void Statusbar::print(int delay, const std::string &message)
|
||||
{
|
||||
if (statusbar_allow_unlock)
|
||||
{
|
||||
statusbar_lock_time = Global::Timer;
|
||||
statusbar_lock_delay = boost::posix_time::seconds(delay);
|
||||
if (Config.statusbar_visibility)
|
||||
statusbar_block_update = true;
|
||||
else
|
||||
progressbar_block_update = true;
|
||||
wFooter->goToXY(0, Config.statusbar_visibility);
|
||||
*wFooter << message << NC::TermManip::ClearToEOL;
|
||||
if(delay)
|
||||
{
|
||||
statusbar_lock_time = Global::Timer;
|
||||
statusbar_lock_delay = boost::posix_time::seconds(delay);
|
||||
if (Config.statusbar_visibility)
|
||||
statusbar_block_update = true;
|
||||
else
|
||||
progressbar_block_update = true;
|
||||
wFooter->goToXY(0, Config.statusbar_visibility);
|
||||
*wFooter << message << NC::TermManip::ClearToEOL;
|
||||
}
|
||||
wFooter->refresh();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user