Formatting
This commit is contained in:
@@ -14,9 +14,9 @@ use std::sync::Arc;
|
||||
use std::time::{Duration, Instant};
|
||||
|
||||
use doctate_client_core::{
|
||||
pick_footer_status, run_startup_cleanup, write_sidecar, CaseMarker, CaseStore, FooterStatus,
|
||||
CaseMarker, CaseStore, DEFAULT_MARKER_RETENTION, DEFAULT_ORPHAN_AUDIO_RETENTION, FooterStatus,
|
||||
PendingUpload, ServerSync, SnapshotCache, SyncConfig, UploadEvent, WorkerSnapshot, WorkerState,
|
||||
DEFAULT_MARKER_RETENTION, DEFAULT_ORPHAN_AUDIO_RETENTION,
|
||||
pick_footer_status, run_startup_cleanup, write_sidecar,
|
||||
};
|
||||
use doctate_common::timestamp::{
|
||||
extract_hhmm, now_rfc3339, parse_rfc3339, recorded_at_to_filename_stem,
|
||||
@@ -157,10 +157,7 @@ impl DoctateApp {
|
||||
.config
|
||||
.as_ref()
|
||||
.and_then(|c| c.oneliner_poll_interval_seconds),
|
||||
oneliner_window_hours: self
|
||||
.config
|
||||
.as_ref()
|
||||
.and_then(|c| c.oneliner_window_hours),
|
||||
oneliner_window_hours: self.config.as_ref().and_then(|c| c.oneliner_window_hours),
|
||||
};
|
||||
if let Err(e) = crate::config::save(&cfg) {
|
||||
error!(error = %e, "config save failed");
|
||||
@@ -415,9 +412,7 @@ impl DoctateApp {
|
||||
match &self.state {
|
||||
AppState::NotConfigured => {
|
||||
ui.label("Server URL:");
|
||||
ui.add(
|
||||
egui::TextEdit::singleline(&mut self.server_url_input).desired_width(280.0),
|
||||
);
|
||||
ui.add(egui::TextEdit::singleline(&mut self.server_url_input).desired_width(280.0));
|
||||
ui.add_space(4.0);
|
||||
ui.label("API Key:");
|
||||
ui.add(
|
||||
@@ -463,11 +458,7 @@ impl DoctateApp {
|
||||
|
||||
fn render_case_list(&self, ui: &mut egui::Ui) -> Option<UiAction> {
|
||||
let snapshot = self.snapshot_rx.borrow().clone();
|
||||
let window = self
|
||||
.config
|
||||
.as_ref()
|
||||
.map(Config::window_hours)
|
||||
.unwrap_or(72);
|
||||
let window = self.config.as_ref().map(Config::window_hours).unwrap_or(72);
|
||||
let cutoff = time::OffsetDateTime::now_utc() - time::Duration::hours(window as i64);
|
||||
|
||||
let visible: Vec<&CaseMarker> = snapshot
|
||||
|
||||
Reference in New Issue
Block a user