fixed windows issues

This commit is contained in:
DecDuck
2024-10-09 17:55:19 +11:00
parent 0c0cfebc1e
commit 959dad383e
11 changed files with 40 additions and 28 deletions

View File

@ -12,7 +12,7 @@ use std::{
use auth::{auth_initiate, recieve_handshake};
use data::DatabaseInterface;
use log::info;
use remote::{gen_drop_url, open_url, use_remote};
use remote::{gen_drop_url, use_remote};
use serde::{Deserialize, Serialize};
use structured_logger::{json::new_writer, Builder};
use tauri_plugin_deep_link::DeepLinkExt;
@ -91,7 +91,6 @@ pub fn run() {
auth_initiate,
use_remote,
gen_drop_url,
open_url,
])
.plugin(tauri_plugin_shell::init())
.setup(|app| {

View File

@ -62,12 +62,6 @@ pub async fn use_remote<'a>(
return Ok(());
}
#[tauri::command]
pub fn open_url(path: String) -> Result<(), String> {
webbrowser::open(&path).unwrap();
Ok(())
}
#[tauri::command]
pub fn gen_drop_url(app: tauri::AppHandle, path: String) -> Result<String, String> {
let base_url = {