Fix for #183, only set min-size on macOs and Windows, linux appears to have issues despite the package claiming support.

This commit is contained in:
esdot
2025-01-10 09:26:44 -07:00
parent cdd9f17a28
commit 5cbde836cd

View File

@ -35,7 +35,8 @@ class AppLogic {
Future<void> bootstrap() async {
debugPrint('bootstrap start...');
// Set min-sizes for desktop apps
if (PlatformInfo.isDesktop) {
// TODO: Test on Linux and confirm whether it's safe to call there, according to issue #183 its not.
if (PlatformInfo.isWindows || PlatformInfo.isMacOS) {
await DesktopWindow.setMinWindowSize($styles.sizes.minAppSize);
}