mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2026-10-17 08:42:28 +00:00
keep original flag
This commit is contained in:
1 parent
55a8b020e0
commit
187296a277
8 files changed
+350
-35
No files matched your search
@@ -139,12 +139,12 @@ pub fn create_artificial_timestamps(
|
||||
|
||||
#[tauri::command(async)]
|
||||
pub fn merge(state: State<AppState>, merge_type: MergeType, remove_gaps: bool) -> api::Outcome {
|
||||
state.run(move |e| api::merge(e, merge_type, remove_gaps))
|
||||
state.run(move |e| api::merge(e, merge_type, remove_gaps, false))
|
||||
}
|
||||
|
||||
#[tauri::command(async)]
|
||||
pub fn extract(state: State<AppState>) -> api::Outcome {
|
||||
state.run(api::extract)
|
||||
state.run(|e| api::extract(e, false))
|
||||
}
|
||||
|
||||
#[tauri::command(async)]
|
||||
@@ -214,5 +214,5 @@ pub fn split(
|
||||
at: u32,
|
||||
split_type: SplitType,
|
||||
) -> api::Outcome {
|
||||
state.run(move |e| api::split(e, revision, at, split_type))
|
||||
state.run(move |e| api::split(e, revision, at, split_type, false))
|
||||
}
|
||||
+1
-1
@@ -255,7 +255,7 @@ mod tests {
|
||||
// another session
|
||||
let storage = FileStorage::open(&root).unwrap();
|
||||
let restored = pollster::block_on(Persister::default().restore(&storage)).unwrap();
|
||||
let mut other = Engine::default();
|
||||
let mut other: Engine = Engine::default();
|
||||
other.restore(restored);
|
||||
assert_eq!(other.order(), order);
|
||||
assert_eq!(
|
||||
|
||||
Reference in new issue
Block a user