Przeglądaj źródła

fix: ci problem

mrxiaozhuox 3 lat temu
rodzic
commit
c9fa19d009

+ 0 - 5
packages/desktop/src/desktop_context.rs

@@ -105,11 +105,6 @@ impl DesktopContext {
             .proxy
             .send_event(UserWindowEvent::SetDecorations(decoration));
     }
-
-    /// skip/hidden the taskbar icon
-    pub fn set_skip_taskbar(&self, skip: bool) {
-        let _ = self.proxy.send_event(UserWindowEvent::SkipTaskBar(skip));
-    }
 }
 
 /// use this function can get the `DesktopContext` context.

+ 1 - 10
packages/desktop/src/lib.rs

@@ -72,9 +72,7 @@ use tao::{
 pub use wry;
 pub use wry::application as tao;
 use wry::{
-    application::{
-        event_loop::EventLoopProxy, platform::windows::WindowExtWindows, window::Fullscreen,
-    },
+    application::{event_loop::EventLoopProxy, window::Fullscreen},
     webview::RpcRequest,
     webview::{WebView, WebViewBuilder},
 };
@@ -373,12 +371,6 @@ pub fn launch_with_props<P: 'static + Send>(
                             window.set_decorations(state);
                         }
                     }
-                    UserWindowEvent::SkipTaskBar(state) => {
-                        for webview in desktop.webviews.values() {
-                            let window = webview.window();
-                            window.set_skip_taskbar(state);
-                        }
-                    }
                 }
             }
             Event::MainEventsCleared => {}
@@ -408,7 +400,6 @@ pub enum UserWindowEvent {
 
     SetTitle(String),
     SetDecorations(bool),
-    SkipTaskBar(bool),
 }
 
 pub struct DesktopController {