From 57394088e9cfe8edcc37cf9f1f75094ab87ffba3 Mon Sep 17 00:00:00 2001 From: adrian-kong Date: Fri, 3 Nov 2023 09:20:31 +1100 Subject: [PATCH] disable refresh on record --- console_backend/src/main_tab.rs | 1 - console_backend/src/server_recv_thread.rs | 4 +--- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/console_backend/src/main_tab.rs b/console_backend/src/main_tab.rs index 6372c2296..636577ebd 100644 --- a/console_backend/src/main_tab.rs +++ b/console_backend/src/main_tab.rs @@ -173,7 +173,6 @@ impl MainTab { self.shared_state .set_sbp_logging(true, self.client_sender.clone()); self.shared_state.set_sbp_logging_filepath(Some(filepath)); - self.shared_state.set_settings_refresh(true); } self.shared_state.set_sbp_logging_format(logging); } diff --git a/console_backend/src/server_recv_thread.rs b/console_backend/src/server_recv_thread.rs index 65850a9e1..0b3a9f7a4 100644 --- a/console_backend/src/server_recv_thread.rs +++ b/console_backend/src/server_recv_thread.rs @@ -15,7 +15,6 @@ use crate::errors::{ }; use crate::log_panel::LogLevel; use crate::ntrip_tab::NtripOptions; -use crate::output::CsvLogging; use crate::settings_tab; use crate::shared_state::{AdvancedNetworkingState, ConnectionState, SharedState}; use crate::solution_tab::LatLonUnits; @@ -107,8 +106,7 @@ pub fn server_recv_thread( .get_directory() .expect(CAP_N_PROTO_DESERIALIZATION_FAILURE); shared_state.set_logging_directory(PathBuf::from(directory)); - shared_state.lock().logging_bar.csv_logging = - CsvLogging::from(cv_in.get_csv_logging()); + shared_state.set_csv_logging(cv_in.get_csv_logging().into()); shared_state.set_sbp_logging(cv_in.get_sbp_logging(), client_sender.clone()); let sbp_logging_format = cv_in .get_sbp_logging_format()