The Delete / Recalculate / Refine / Compare handlers were bound inside `if (mapEl && points.length)` in showSessionDetail, so a track with no points (started recording, no GPS fix, stopped → 0 km) skipped the whole block and its "Удалить" button did nothing. Moved the session-action button handlers outside the map/points guard so they bind regardless. (Also covers a track whose points all get dropped by the new accuracy filter.) DB.deleteGpsSession already handled zero points fine (DELETE of 0 rows is a no-op); the bug was purely the unbound click handler.
28 lines
706 B
TOML
28 lines
706 B
TOML
[package]
|
|
name = "baldav"
|
|
version = "0.1.408"
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
name = "baldav_lib"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2", features = [] }
|
|
|
|
[dependencies]
|
|
tauri = { version = "2", features = [] }
|
|
tauri-plugin-sql = { version = "2", features = ["sqlite"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
rusqlite = { version = "0.31", features = ["bundled"] }
|
|
|
|
lazy_static = "1"
|
|
ureq = "3"
|
|
base64 = "0.22"
|
|
|
|
[target.'cfg(not(target_os = "android"))'.dependencies]
|
|
btleplug = { version = "0.11", features = ["serde"] }
|
|
uuid = "1"
|
|
tokio = { version = "1", features = ["rt-multi-thread", "sync", "time"] }
|
|
tokio-stream = "0.1"
|