|
|
@ -215,7 +215,7 @@ async fn open_window( |
|
|
|
) -> 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)); |
|
|
|