fix: ci problem

This commit is contained in:
mrxiaozhuox committed 2022-02-11 09:10:27 +08:00
1 parent 62f8e71f7f
commit c9fa19d009
2 files changed
+1 -15

No files matched your search

-5
View File
@@ -105,11 +105,6 @@ impl DesktopContext {
.proxy .proxy
.send_event(UserWindowEvent::SetDecorations(decoration)); .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. /// use this function can get the `DesktopContext` context.
+1 -10
View File
@@ -72,9 +72,7 @@ use tao::{
pub use wry; pub use wry;
pub use wry::application as tao; pub use wry::application as tao;
use wry::{ use wry::{
application::{ application::{event_loop::EventLoopProxy, window::Fullscreen},
event_loop::EventLoopProxy, platform::windows::WindowExtWindows, window::Fullscreen,
},
webview::RpcRequest, webview::RpcRequest,
webview::{WebView, WebViewBuilder}, webview::{WebView, WebViewBuilder},
}; };
@@ -373,12 +371,6 @@ pub fn launch_with_props<P: 'static + Send>(
window.set_decorations(state); window.set_decorations(state);
} }
} }
UserWindowEvent::SkipTaskBar(state) => {
for webview in desktop.webviews.values() {
let window = webview.window();
window.set_skip_taskbar(state);
}
}
} }
} }
Event::MainEventsCleared => {} Event::MainEventsCleared => {}
@@ -408,7 +400,6 @@ pub enum UserWindowEvent {
SetTitle(String), SetTitle(String),
SetDecorations(bool), SetDecorations(bool),
SkipTaskBar(bool),
} }
pub struct DesktopController { pub struct DesktopController {