Merge pull request 'Prevent logging from causing state changes' (#73) from fix/log-data into master
Reviewed-on: #73
This commit is contained in:
commit
353397ae15
2 changed files with 3 additions and 6 deletions
|
@ -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)]
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue