feat: commit code

This commit is contained in:
mrxiaozhuox committed 2022-02-11 10:36:29 +08:00
1 parent 557201816b
commit da0f596cde
3 files changed
+26 -6

No files matched your search

+3 -3
View File
@@ -1,7 +1,7 @@
use std::rc::Rc;
use dioxus_core::ScopeState;
use wry::application::{event_loop::EventLoopProxy, window::Fullscreen};
use wry::application::event_loop::EventLoopProxy;
use crate::UserWindowEvent;
@@ -64,10 +64,10 @@ impl DesktopContext {
}
/// change window to fullscreen
pub fn set_fullscreen(&self, fullscreen: Option<Fullscreen>) {
pub fn set_fullscreen(&self, fullscreen: bool) {
let _ = self
.proxy
.send_event(UserWindowEvent::Fullscreen(Box::new(fullscreen)));
.send_event(UserWindowEvent::Fullscreen(fullscreen));
}
/// set resizable state