Compare commits
2
Commits
44ad025d3d
...
e84feb292b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e84feb292b | ||
|
|
485cb3acf7 |
No files matched your search
@@ -23,7 +23,10 @@ use crate::utils::{
|
||||
|
||||
#[tauri::command]
|
||||
pub fn opened_urls(app: tauri::AppHandle) -> Vec<PathBuf> {
|
||||
app.state::<OpenedUrls>().0.lock().unwrap().clone()
|
||||
let args = app.state::<OpenedUrls>().0.lock().unwrap().clone();
|
||||
app.state::<OpenedUrls>().0.lock().unwrap().clear();
|
||||
|
||||
args
|
||||
}
|
||||
|
||||
#[tauri::command]
|
||||
|
||||
@@ -52,12 +52,6 @@ pub fn run() {
|
||||
}
|
||||
}
|
||||
|
||||
app.state::<OpenedUrls>()
|
||||
.0
|
||||
.lock()
|
||||
.unwrap()
|
||||
.extend(files.clone());
|
||||
|
||||
app.emit("opened", files.clone()).ok();
|
||||
}
|
||||
}));
|
||||
|
||||
Reference in new issue
Block a user