Merge pull request #338 from mvrozanti/master

allow for message_delay_time = "0"
This commit is contained in:
Larson Carter
2019-09-30 18:14:18 -05:00
committed by GitHub

View File

@@ -172,14 +172,17 @@ void Statusbar::print(int delay, const std::string &message)
{ {
if (statusbar_allow_unlock) if (statusbar_allow_unlock)
{ {
statusbar_lock_time = Global::Timer; if(delay)
statusbar_lock_delay = boost::posix_time::seconds(delay); {
if (Config.statusbar_visibility) statusbar_lock_time = Global::Timer;
statusbar_block_update = true; statusbar_lock_delay = boost::posix_time::seconds(delay);
else if (Config.statusbar_visibility)
progressbar_block_update = true; statusbar_block_update = true;
wFooter->goToXY(0, Config.statusbar_visibility); else
*wFooter << message << NC::TermManip::ClearToEOL; progressbar_block_update = true;
wFooter->goToXY(0, Config.statusbar_visibility);
*wFooter << message << NC::TermManip::ClearToEOL;
}
wFooter->refresh(); wFooter->refresh();
} }
} }