mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 10:22:02 +00:00
fix: Add is_auto_sync_paused to Config; remove unused import
Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
parent
1842419f10
commit
d99b57a98a
2 changed files with 5 additions and 1 deletions
|
|
@ -64,6 +64,10 @@ impl Config {
|
|||
Self::default()
|
||||
})
|
||||
}
|
||||
|
||||
pub fn is_auto_sync_paused(&self) -> bool {
|
||||
self.timeturner_offset.is_active()
|
||||
}
|
||||
}
|
||||
|
||||
impl Default for Config {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
use crate::config::Config;
|
||||
use crate::sync_logic::LtcFrame;
|
||||
use chrono::{DateTime, Duration as ChronoDuration, Local, NaiveTime, TimeZone};
|
||||
use chrono::{DateTime, Duration as ChronoDuration, Local, TimeZone};
|
||||
use num_rational::Ratio;
|
||||
use std::process::Command;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue