EcoPasteHub / EcoPaste

🎉跨平台的剪贴板管理工具 | Cross-platform clipboard management tool
https://ecopaste.cn
Apache License 2.0
2.2k stars 120 forks source link

[feat] 没窗口的时候也有 webview 进程?有点占用资源 #382

Open will5933 opened 2 months ago

will5933 commented 2 months ago

Describe the problem

没窗口的时候也有 webview 进程?

图片

Describe the solution you'd like

tauri::Builder::default()
  .setup(|app| {
    let docs_window = tauri::WindowBuilder::new(
      app,
      "external", /* the unique window label */
      tauri::WindowUrl::External("https://tauri.app/".parse().unwrap())
    ).build()?;
    let local_window = tauri::WindowBuilder::new(
      app,
      "local",
      tauri::WindowUrl::App("index.html".into())
    ).build()?;
    Ok(())
  })
  .run(tauri::generate_context!())
  .expect("error while running app");

用运行时窗口会不会更好一些?

ayangweb commented 2 months ago

收到反馈,这个需求我们会看一下可行性🌹