✨ Compatible with the latest version of tauri
This commit is contained in:
@@ -2,11 +2,13 @@
|
|||||||
mod app;
|
mod app;
|
||||||
mod util;
|
mod util;
|
||||||
|
|
||||||
use std::time::Duration;
|
|
||||||
use tauri::Manager;
|
use tauri::Manager;
|
||||||
use tauri_plugin_window_state::Builder as WindowStatePlugin;
|
use tauri_plugin_window_state::Builder as WindowStatePlugin;
|
||||||
use tauri_plugin_window_state::StateFlags;
|
use tauri_plugin_window_state::StateFlags;
|
||||||
|
|
||||||
|
#[cfg(target_os = "macos")]
|
||||||
|
use std::time::Duration;
|
||||||
|
|
||||||
use app::{
|
use app::{
|
||||||
invoke::{download_file, download_file_by_binary, send_notification},
|
invoke::{download_file, download_file_by_binary, send_notification},
|
||||||
setup::{set_global_shortcut, set_system_tray},
|
setup::{set_global_shortcut, set_system_tray},
|
||||||
@@ -31,6 +33,7 @@ pub fn run_app() {
|
|||||||
})
|
})
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
|
#[allow(deprecated)]
|
||||||
tauri_app
|
tauri_app
|
||||||
.plugin(window_state_plugin)
|
.plugin(window_state_plugin)
|
||||||
.plugin(tauri_plugin_oauth::init())
|
.plugin(tauri_plugin_oauth::init())
|
||||||
|
|||||||
Reference in New Issue
Block a user