use Mode::Hidden instead

This commit is contained in:
Cory Forsstrom 2021-04-09 09:00:29 -07:00
parent 6f6f1d82e8
commit 84c0c9bc7a
8 changed files with 19 additions and 35 deletions

View file

@ -66,7 +66,6 @@ impl Window {
self,
title: &str,
mode: Mode,
visible: bool,
primary_monitor: Option<MonitorHandle>,
) -> WindowBuilder {
let mut window_builder = WindowBuilder::new();
@ -82,7 +81,7 @@ impl Window {
.with_window_icon(self.icon)
.with_always_on_top(self.always_on_top)
.with_fullscreen(conversion::fullscreen(primary_monitor, mode))
.with_visible(visible);
.with_visible(conversion::visible(mode));
if let Some((width, height)) = self.min_size {
window_builder = window_builder