prefer get_config_bool() where appropriate

for db input/output, we still use get_config_int() to convert to/from 0/1.
also for info() we prefer get_config_int() to show the real value.
This commit is contained in:
B. Petersen
2019-10-03 21:41:30 +02:00
committed by Floris Bruynooghe
parent 8dfd04672f
commit 79b92727cc
4 changed files with 14 additions and 21 deletions

View File

@@ -393,7 +393,7 @@ impl Context {
}
pub fn do_heuristics_moves(&self, folder: &str, msg_id: u32) {
if self.get_config_int(Config::MvboxMove) == 0 {
if !self.get_config_bool(Config::MvboxMove) {
return;
}