Merge pull request #338 from mvrozanti/master

allow for message_delay_time = "0"
master
Larson Carter 7 years ago committed by GitHub
commit 9f6862e627
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 19
      src/statusbar.cpp

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

Loading…
Cancel
Save