From dbe0badd27aa567fd2e68c25fa869c23f65c915a Mon Sep 17 00:00:00 2001 From: Giuliano Bellini s294739 Date: Sat, 6 Apr 2024 14:37:30 +0200 Subject: [PATCH] Revert "set window minimum size to None" This reverts commit 86e35e825b1cf2d180e2f49b7c10effd94fc5642. --- src/configs/types/config_window.rs | 2 +- src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/configs/types/config_window.rs b/src/configs/types/config_window.rs index b09611c1..d794b506 100644 --- a/src/configs/types/config_window.rs +++ b/src/configs/types/config_window.rs @@ -14,7 +14,7 @@ pub struct ConfigWindow { impl ConfigWindow { pub const DEFAULT_SIZE: (u32, u32) = (1190, 670); - // pub const MIN_SIZE: (u32, u32) = (800, 500); + pub const MIN_SIZE: (u32, u32) = (800, 500); const THUMBNAIL_SIZE: (u32, u32) = (360, 222); const FILE_NAME: &'static str = "window"; diff --git a/src/main.rs b/src/main.rs index 1522684c..eb8d5720 100644 --- a/src/main.rs +++ b/src/main.rs @@ -95,7 +95,7 @@ pub fn main() -> iced::Result { window: window::Settings { size: size.to_size(), // start size position: position.to_position(), - min_size: None, // Some(ConfigWindow::MIN_SIZE.to_size()), // min size allowed + min_size: Some(ConfigWindow::MIN_SIZE.to_size()), // min size allowed max_size: None, visible: true, resizable: true,