Revert "progress-bar: re-draw last update if nothing new for 1sec."
Not ready for this yet, causes the prompt to disappear in nix repl
and more generally can overwrite non-progress-bar messages.
This reverts commit 44de71a396.
			
			
This commit is contained in:
		
							parent
							
								
									c2de2ff385
								
							
						
					
					
						commit
						4495560d6d
					
				
					 1 changed files with 2 additions and 3 deletions
				
			
		|  | @ -75,9 +75,8 @@ public: | ||||||
|         updateThread = std::thread([&]() { |         updateThread = std::thread([&]() { | ||||||
|             auto state(state_.lock()); |             auto state(state_.lock()); | ||||||
|             while (state->active) { |             while (state->active) { | ||||||
|                 auto r = state.wait_for(updateCV, std::chrono::seconds(1)); |                 state.wait(updateCV); | ||||||
|                 draw(*state); |                 draw(*state); | ||||||
|                 if (r == std::cv_status::no_timeout) |  | ||||||
|                 state.wait_for(quitCV, std::chrono::milliseconds(50)); |                 state.wait_for(quitCV, std::chrono::milliseconds(50)); | ||||||
|             } |             } | ||||||
|         }); |         }); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue