Skip to content

Commit 9ba961b

Browse files
authored
Merge pull request #156 from Integration-Automation/dev
Pre-check code_save_thread is None
2 parents b201800 + 8c2729a commit 9ba961b

File tree

3 files changed

+13
-12
lines changed

3 files changed

+13
-12
lines changed

je_editor/pyside_ui/main_ui/editor/editor_widget.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,8 @@ def open_an_file(self, path: Path) -> bool:
150150
jeditor_logger.info(f"EditorWidget open_an_file path: {path}")
151151
if not self.check_is_open(path):
152152
return False
153-
self.code_save_thread.skip_this_round = True
153+
if self.code_save_thread:
154+
self.code_save_thread.skip_this_round = True
154155
file, file_content = read_file(str(path))
155156
self.code_edit.setPlainText(
156157
file_content

pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Rename to build stable version
2-
# This is stable version
1+
# Rename to build dev version
2+
# This is dev version
33
[build-system]
4-
requires = ["setuptools>=61.0"]
4+
requires = ["setuptools"]
55
build-backend = "setuptools.build_meta"
66

77
[project]
8-
name = "je_editor"
9-
version = "0.0.201"
8+
name = "je_editor_dev"
9+
version = "0.0.222"
1010
authors = [
1111
{ name = "JE-Chen", email = "[email protected]" },
1212
]
@@ -26,7 +26,6 @@ classifiers = [
2626
"Operating System :: OS Independent"
2727
]
2828

29-
3029
[project.urls]
3130
Homepage = "https://github.com/JE-Chen/je_editor"
3231
Documentation = "https://je-editor.readthedocs.io/en/latest/"

dev.toml renamed to stable.toml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Rename to build dev version
2-
# This is dev version
1+
# Rename to build stable version
2+
# This is stable version
33
[build-system]
4-
requires = ["setuptools"]
4+
requires = ["setuptools>=61.0"]
55
build-backend = "setuptools.build_meta"
66

77
[project]
8-
name = "je_editor_dev"
9-
version = "0.0.221"
8+
name = "je_editor"
9+
version = "0.0.202"
1010
authors = [
1111
{ name = "JE-Chen", email = "[email protected]" },
1212
]
@@ -26,6 +26,7 @@ classifiers = [
2626
"Operating System :: OS Independent"
2727
]
2828

29+
2930
[project.urls]
3031
Homepage = "https://github.com/JE-Chen/je_editor"
3132
Documentation = "https://je-editor.readthedocs.io/en/latest/"

0 commit comments

Comments
 (0)