window edit for the first time

Signed-off-by: LoryArnuis <kingchagne@126.com>