feat: update to latest wry (#8213)

Co-authored-by: amrbashir <amr.bashir2015@gmail.com>
This commit is contained in:
Lucas Fernandes Nogueira
2023-11-21 12:32:06 -03:00
committed by GitHub
parent bf095df55a
commit ebc3e78e68
13 changed files with 460 additions and 335 deletions

View File

@@ -44,7 +44,7 @@ pub fn run_app<R: Runtime, F: FnOnce(&App<R>) + Send + 'static>(
#[cfg(desktop)]
{
let handle = app.handle();
tray::create_tray(&handle)?;
tray::create_tray(handle)?;
handle.plugin(tauri_plugin_cli::init())?;
}
@@ -68,7 +68,7 @@ pub fn run_app<R: Runtime, F: FnOnce(&App<R>) + Send + 'static>(
.inner_size(1000., 800.)
.min_inner_size(600., 400.)
.content_protected(true)
.menu(tauri::menu::Menu::default(&app.handle())?);
.menu(tauri::menu::Menu::default(app.handle())?);
}
let window = window_builder.build().unwrap();