fix linux window bar
This commit is contained in:
parent
801ed74ace
commit
e40278366c
2 changed files with 12 additions and 4 deletions
|
|
@ -81,8 +81,12 @@ async fn initialize_tauri(builder: tauri::Builder<tauri::Wry>) -> LauncherResult
|
|||
.plugin(tauri_plugin_dialog::init())
|
||||
.plugin(tauri_plugin_fs::init())
|
||||
.plugin(tauri_plugin_deep_link::init())
|
||||
.plugin(tauri_plugin_os::init())
|
||||
.menu(tauri::menu::Menu::default)
|
||||
.plugin(tauri_plugin_os::init());
|
||||
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
let builder = builder.menu(tauri::menu::Menu::default);
|
||||
|
||||
let builder = builder
|
||||
.invoke_handler(router.into_handler())
|
||||
.setup(move |app| {
|
||||
app.manage(ext::updater::UpdaterState::default());
|
||||
|
|
|
|||
|
|
@ -74,8 +74,12 @@ async fn initialize_tauri(builder: tauri::Builder<tauri::Wry>) -> LauncherResult
|
|||
.plugin(tauri_plugin_clipboard_manager::init())
|
||||
.plugin(tauri_plugin_dialog::init())
|
||||
.plugin(tauri_plugin_deep_link::init())
|
||||
.plugin(tauri_plugin_opener::init())
|
||||
.menu(tauri::menu::Menu::default)
|
||||
.plugin(tauri_plugin_opener::init());
|
||||
|
||||
#[cfg(not(target_os = "linux"))]
|
||||
let builder = builder.menu(tauri::menu::Menu::default);
|
||||
|
||||
let builder = builder
|
||||
.invoke_handler(router.into_handler())
|
||||
.setup(move |app| {
|
||||
app.asset_protocol_scope()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue