From 620fb2753e18b6234f3ecb86e9b8f6caafb47681 Mon Sep 17 00:00:00 2001 From: Samuel Oldham Date: Fri, 27 Sep 2024 14:38:42 +0100 Subject: [PATCH] Change line of where resizeable is --- psst-gui/src/ui/mod.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/psst-gui/src/ui/mod.rs b/psst-gui/src/ui/mod.rs index 27e3edd9..c8c1f7aa 100644 --- a/psst-gui/src/ui/mod.rs +++ b/psst-gui/src/ui/mod.rs @@ -88,7 +88,6 @@ pub fn preferences_window(config: &Config) -> WindowDesc { let mut win = WindowDesc::new(preferences_widget()) .title("Preferences") - .resizable(false) .show_title(false) .transparent_titlebar(true); @@ -107,6 +106,7 @@ pub fn preferences_window(config: &Config) -> WindowDesc { .show_titlebar(false); } else { win = win.window_size(win_size) + .resizable(false) } if cfg!(target_os = "macos") { win.menu(menu::main_menu) @@ -130,10 +130,8 @@ pub fn account_setup_window() -> WindowDesc { } pub fn kiosk_setup_window() -> WindowDesc { - let mut win = WindowDesc::new(kiosk_setup_widget()) .title("Setup") - .resizable(false) .show_title(false) .set_window_state(WindowState::Maximized) .show_titlebar(false) @@ -143,7 +141,8 @@ pub fn kiosk_setup_window() -> WindowDesc { let work_area = monitor.virtual_work_rect(); win = win .window_size(work_area.size()) - .set_position(druid::Point::new(0.0, 0.0)); + .set_position(druid::Point::new(0.0, 0.0)) + .resizable(false); } if cfg!(target_os = "macos") {