Prevent logging from causing state changes #73

Merged
lucas merged 1 commit from fix/log-data into master 2023-03-16 14:28:20 +01:00
2 changed files with 3 additions and 6 deletions

View file

@ -155,6 +155,8 @@ pub(crate) struct State {
pub game_dir: Arc<PathBuf>,
pub data_dir: Arc<PathBuf>,
pub nexus_api_key: Arc<String>,
#[data(ignore)]
pub log: Arc<String>,
#[lens(ignore)]

View file

@ -354,12 +354,7 @@ impl AppDelegate<State> for Delegate {
state.is_update_in_progress = false;
Handled::Yes
}
cmd => {
if cfg!(debug_assertions) {
tracing::warn!("Unknown command: {:?}", cmd);
}
Handled::No
}
_ => Handled::No,
}
}