1
0
mirror of https://github.com/4yn/slidershim.git synced 2024-11-27 23:10:49 +01:00

update packages and deps

This commit is contained in:
4yn 2022-03-18 21:43:10 +08:00
parent cd2c1d73c0
commit 3a3e339aca
6 changed files with 923 additions and 14943 deletions

11683
package-lock.json generated

File diff suppressed because it is too large Load Diff

1195
src-tauri/Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@ edition = "2018"
build = "src/build.rs" build = "src/build.rs"
[build-dependencies] [build-dependencies]
tauri-build = { version = "1.0.0-beta.4" } tauri-build = { version = "1.0.0-rc.4", features = [] }
[dependencies] [dependencies]
log = "0.4.14" log = "0.4.14"
@ -19,7 +19,7 @@ env_logger = "0.9.0"
parking_lot = "0.12.0" parking_lot = "0.12.0"
tauri = { version = "1.0.0-beta.8", features = ["shell-open", "system-tray"] } tauri = { version = "1.0.0-rc.4", features = ["system-tray", "window-start-dragging"] }
open = "2.0.2" open = "2.0.2"
slider_io = {path = "../src-slider_io" } slider_io = {path = "../src-slider_io" }

View File

@ -13,7 +13,8 @@ use std::sync::Arc;
use log::info; use log::info;
use tauri::{ use tauri::{
AppHandle, CustomMenuItem, Event, Manager, Runtime, SystemTray, SystemTrayEvent, SystemTrayMenu, AppHandle, CustomMenuItem, Manager, RunEvent, Runtime, SystemTray, SystemTrayEvent,
SystemTrayMenu,
}; };
fn show_window<R: Runtime>(handle: &AppHandle<R>) { fn show_window<R: Runtime>(handle: &AppHandle<R>) {
@ -185,7 +186,7 @@ fn main() {
.expect("error while running tauri application") .expect("error while running tauri application")
.run(|app_handle, event| match event { .run(|app_handle, event| match event {
// After app starts // After app starts
Event::CloseRequested { label, api, .. } if label.as_str() == "main" => { RunEvent::CloseRequested { label, api, .. } if label.as_str() == "main" => {
api.prevent_close(); api.prevent_close();
hide_window(app_handle); hide_window(app_handle);
} }

View File

@ -51,7 +51,10 @@
"active": false "active": false
}, },
"allowlist": { "allowlist": {
"all": false "all": false,
"window": {
"startDragging": true
}
}, },
"windows": [ "windows": [
{ {

2974
yarn.lock

File diff suppressed because it is too large Load Diff