From 7af7d474caf76e9266ea0f171daa07994f4853c8 Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Thu, 7 Nov 2024 16:51:06 +0800 Subject: [PATCH] optimize code --- packages/wm/src/app_command.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/wm/src/app_command.rs b/packages/wm/src/app_command.rs index a6a52a95f..7ec1b224b 100644 --- a/packages/wm/src/app_command.rs +++ b/packages/wm/src/app_command.rs @@ -497,7 +497,8 @@ impl InvokeCommand { )?; if width.is_some() || height.is_some() { - set_window_size(window.clone(), + set_window_size( + window.clone(), width.clone(), height.clone(), state,