1. Fixed an error where the default condition was not triggered due to different syntax formats of Case statements during code language conversion and porting. 2. Corrected an issue with window resizing when maximized: now dragging the window after maximizing will not resize it again, and the maximized state is removed.