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]]
name = "ng-rocksdb"
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 = [
"bindgen",
"bzip2-sys",

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

Loading…
Cancel
Save