Skip to content

Commit ac08959

Browse files
committed
修复主窗口不关闭的情况下,再次格式化json后编辑顶级类型名时闪退的问题。
1 parent 19a47e1 commit ac08959

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

formatter.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,8 @@ def update_list(json_str):
139139
json_obj = json.loads(json_str)
140140
# 传入json对象,返回所需要的格式化协议数据数组
141141
res = analyse_json_obj(json_obj)
142-
142+
global last_list_com_box
143+
last_list_com_box = None
143144
ui.tv_fields.setRowCount(len(res))
144145

145146
pre_type_combobox = None

0 commit comments

Comments
 (0)