mirror of
https://github.com/foss42/apidash.git
synced 2025-08-06 05:32:26 +08:00
Fixed to obey window size constraints on Windows
This commit is contained in:
@ -12,7 +12,7 @@ void main() async {
|
||||
if (kIsLinux) {
|
||||
await setupInitialWindow();
|
||||
}
|
||||
if (kIsMacOS) {
|
||||
if (kIsMacOS || kIsWindows) {
|
||||
var win = getInitialSize();
|
||||
await setupWindow(sz: win.$1, off: win.$2);
|
||||
}
|
||||
@ -21,8 +21,4 @@ void main() async {
|
||||
child: DashApp(),
|
||||
),
|
||||
);
|
||||
if (kIsWindows) {
|
||||
var win = getInitialSize();
|
||||
await setupWindow(sz: win.$1, off: win.$2);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user