small fix for android build

pull/19/head
Niko PLP 7 months ago
parent 6009d81bb7
commit 978d9c25d4
  1. 2
      Cargo.lock
  2. 6
      ng-app/src-tauri/src/lib.rs

2
Cargo.lock generated

@ -3430,7 +3430,7 @@ dependencies = [
[[package]] [[package]]
name = "ng-rocksdb" name = "ng-rocksdb"
version = "0.21.0" version = "0.21.0"
source = "git+https://git.nextgraph.org/NextGraph/rust-rocksdb.git?branch=master#9fedf34e567e00c5f1a0d7dea4e613a445148e76" source = "git+https://git.nextgraph.org/NextGraph/rust-rocksdb.git?branch=master#866eb4de14fce1b699de7549875125e36a33cf95"
dependencies = [ dependencies = [
"bindgen", "bindgen",
"bzip2-sys", "bzip2-sys",

@ -220,10 +220,10 @@ async fn open_window(
app: tauri::AppHandle, app: tauri::AppHandle,
) -> Result<(), ()> { ) -> Result<(), ()> {
log_debug!("open window url {:?}", url); log_debug!("open window url {:?}", url);
let already_exists = app.get_window(&label); let _already_exists = app.get_window(&label);
#[cfg(desktop)] #[cfg(desktop)]
if already_exists.is_some() { if _already_exists.is_some() {
let _ = already_exists.unwrap().close(); let _ = _already_exists.unwrap().close();
std::thread::sleep(std::time::Duration::from_secs(1)); std::thread::sleep(std::time::Duration::from_secs(1));
} }
let mut config = WindowConfig::default(); let mut config = WindowConfig::default();

Loading…
Cancel
Save