Merge pull request 'Prevent logging from causing state changes' (#73) from fix/log-data into master

Reviewed-on: #73
This commit is contained in:
Lucas Schwiderski 2023-03-16 14:28:19 +01:00
commit 353397ae15
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,
}
}