mirror of
https://github.com/Drop-OSS/drop-app.git
synced 2025-11-14 08:41:21 +10:00
fixed windows issues
This commit is contained in:
@ -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| {
|
||||
|
||||
@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user