Make a debugging println!() conditional on is_running_problem_test

… like other print messages introduced in 19a1e57c90
This commit is contained in:
Simon Sapin 2015-12-30 17:21:15 +00:00
parent f34a656b14
commit 46bb3e5778

View file

@ -1652,7 +1652,9 @@ impl<Window: WindowMethods> IOCompositor<Window> {
// for saving.
// Reset the flag so that we check again in the future
// TODO: only reset this if we load a new document?
println!("was ready to save, resetting ready_to_save_state");
if opts::get().is_running_problem_test {
println!("was ready to save, resetting ready_to_save_state");
}
self.ready_to_save_state = ReadyState::Unknown;
Ok(())
}