Skip to content

Commit 7df478f

Browse files
authored
Merge pull request #138 from Integration-Automation/dev
Dev
2 parents 94b4177 + e680289 commit 7df478f

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

dev.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "je_editor_dev"
9-
version = "0.0.190"
9+
version = "0.0.192"
1010
authors = [
1111
{ name = "JE-Chen", email = "[email protected]" },
1212
]

exe/a.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
print("你好")
1+
print("你好")

je_editor/pyside_ui/code/plaintext_code_edit/code_edit_plaintext.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def __init__(self, main_window: Union[EditorWidget, FullEditorWidget]):
5959
self.update_line_number_area_width(0)
6060
self.textChanged.connect(self.highlight_current_line)
6161
self.setTabStopDistance(
62-
QtGui.QFontMetricsF(self.font()).horizontalAdvance(' ') * 4
62+
QtGui.QFontMetricsF(self.font()).horizontalAdvance(" ")
6363
)
6464
self.highlighter = PythonHighlighter(self.document())
6565
self.highlight_current_line()

je_editor/pyside_ui/main_ui/editor/editor_widget.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ def close(self) -> bool:
187187
if self.code_save_thread is not None:
188188
self.code_save_thread.still_run = False
189189
self.code_save_thread = None
190-
file_is_open_manager_dict.pop(str(Path(self.current_file)), None)
191-
auto_save_manager_dict.pop(self.current_file, None)
190+
if self.current_file:
191+
file_is_open_manager_dict.pop(str(Path(self.current_file)), None)
192+
auto_save_manager_dict.pop(self.current_file, None)
192193
return super().close()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
66

77
[project]
88
name = "je_editor"
9-
version = "0.0.175"
9+
version = "0.0.177"
1010
authors = [
1111
{ name = "JE-Chen", email = "[email protected]" },
1212
]

0 commit comments

Comments
 (0)