feat(desktop): Add desktop deep link (#10072)
Co-authored-by: Brendan Allan <git@brendonovich.dev>
This commit is contained in:
parent
7c0067d59d
commit
2af326606c
10 changed files with 181 additions and 6 deletions
|
|
@ -16,6 +16,8 @@ use std::{
|
|||
time::{Duration, Instant},
|
||||
};
|
||||
use tauri::{AppHandle, LogicalSize, Manager, RunEvent, State, WebviewWindowBuilder};
|
||||
#[cfg(any(target_os = "linux", all(debug_assertions, windows)))]
|
||||
use tauri_plugin_deep_link::DeepLinkExt;
|
||||
#[cfg(windows)]
|
||||
use tauri_plugin_decorum::WebviewWindowExt;
|
||||
use tauri_plugin_dialog::{DialogExt, MessageDialogButtons, MessageDialogResult};
|
||||
|
|
@ -263,6 +265,7 @@ pub fn run() {
|
|||
let _ = window.unminimize();
|
||||
}
|
||||
}))
|
||||
.plugin(tauri_plugin_deep_link::init())
|
||||
.plugin(tauri_plugin_os::init())
|
||||
.plugin(
|
||||
tauri_plugin_window_state::Builder::new()
|
||||
|
|
@ -291,6 +294,9 @@ pub fn run() {
|
|||
markdown::parse_markdown_command
|
||||
])
|
||||
.setup(move |app| {
|
||||
#[cfg(any(target_os = "linux", all(debug_assertions, windows)))]
|
||||
app.deep_link().register_all().ok();
|
||||
|
||||
let app = app.handle().clone();
|
||||
|
||||
// Initialize log state
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue