From 0051666eab11ff74ff6cc8b3f9d902678017ea2a Mon Sep 17 00:00:00 2001 From: black-sliver <59490463+black-sliver@users.noreply.github.com> Date: Thu, 12 Dec 2024 00:35:30 +0100 Subject: [PATCH] Set default settings window min size to 100x100 This works around layouts with no h-grow not properly shrinking the window. --- src/ui/settingswindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ui/settingswindow.cpp b/src/ui/settingswindow.cpp index e61a9fd4..e119b43e 100644 --- a/src/ui/settingswindow.cpp +++ b/src/ui/settingswindow.cpp @@ -4,7 +4,7 @@ namespace Ui { SettingsWindow::SettingsWindow(const char* title, SDL_Surface* icon, const Position& pos, const Size& size) - : TrackerWindow(title, icon, pos, size) + : TrackerWindow(title, icon, pos, {size.width < 1 ? 100 : size.width, size.height < 1 ? 100:size.height}) { if (size.width<1 || size.height<1) resize({100,100}); }