Renamed the 'auto-refresh' settings to 'refresh-interval' so that they represent the internal behaviour better.

This commit is contained in:
Rowan Lewis
2018-03-16 23:31:12 +01:00
parent a7540583d6
commit 69a7a9b180
2 changed files with 8 additions and 8 deletions
+4 -4
View File
@@ -36,15 +36,15 @@ pub fn refresh(source: Option<Vec<Source>>, sender: Sender<Action>) {
}
pub fn get_refresh_interval(settings: &Settings) -> u32 {
let time = settings.get_int("auto-refresh-time") as u32;
let period = settings.get_string("auto-refresh-period").unwrap();
let time = settings.get_int("refresh-interval-time") as u32;
let period = settings.get_string("refresh-interval-period").unwrap();
time_period_to_seconds(&time, period.as_str())
}
pub fn get_cleanup_age(settings: &Settings) -> u32 {
let time = settings.get_int("auto-refresh-time") as u32;
let period = settings.get_string("auto-refresh-period").unwrap();
let time = settings.get_int("cleanup-age-time") as u32;
let period = settings.get_string("cleanup-age-period").unwrap();
time_period_to_seconds(&time, period.as_str())
}