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:
parent
cd2c1d73c0
commit
3a3e339aca
11683
package-lock.json
generated
11683
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
1195
src-tauri/Cargo.lock
generated
1195
src-tauri/Cargo.lock
generated
File diff suppressed because it is too large
Load Diff
@ -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" }
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
@ -51,7 +51,10 @@
|
|||||||
"active": false
|
"active": false
|
||||||
},
|
},
|
||||||
"allowlist": {
|
"allowlist": {
|
||||||
"all": false
|
"all": false,
|
||||||
|
"window": {
|
||||||
|
"startDragging": true
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"windows": [
|
"windows": [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user