整理下下载功能

This commit is contained in:
Tw93
2023-04-07 11:29:02 +08:00
parent 0cead9fbc6
commit 9bf73d937c
2 changed files with 10 additions and 2 deletions

View File

@@ -7,7 +7,7 @@ mod app;
mod util;
use app::{invoke, menu, window};
use invoke::{drag_window, fullscreen, open_browser};
use invoke::{download, drag_window, fullscreen, open_browser};
use menu::{get_menu, menu_event_handle};
use util::{get_data_dir, get_pake_config};
use window::get_window;
@@ -43,7 +43,8 @@ pub fn run_app() {
.invoke_handler(tauri::generate_handler![
drag_window,
fullscreen,
open_browser
open_browser,
download
])
.setup(|app| {
let _window = get_window(app, pake_config, data_dir);