Skip to content

Commit

Permalink
Change line of where resizeable is
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Oldham committed Sep 27, 2024
1 parent b3fc3e5 commit 620fb27
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions psst-gui/src/ui/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ pub fn preferences_window(config: &Config) -> WindowDesc<AppState> {

let mut win = WindowDesc::new(preferences_widget())
.title("Preferences")
.resizable(false)
.show_title(false)
.transparent_titlebar(true);

Expand All @@ -107,6 +106,7 @@ pub fn preferences_window(config: &Config) -> WindowDesc<AppState> {
.show_titlebar(false);
} else {
win = win.window_size(win_size)
.resizable(false)
}
if cfg!(target_os = "macos") {
win.menu(menu::main_menu)
Expand All @@ -130,10 +130,8 @@ pub fn account_setup_window() -> WindowDesc<AppState> {
}

pub fn kiosk_setup_window() -> WindowDesc<AppState> {

let mut win = WindowDesc::new(kiosk_setup_widget())
.title("Setup")
.resizable(false)
.show_title(false)
.set_window_state(WindowState::Maximized)
.show_titlebar(false)
Expand All @@ -143,7 +141,8 @@ pub fn kiosk_setup_window() -> WindowDesc<AppState> {
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") {
Expand Down

0 comments on commit 620fb27

Please sign in to comment.