Skip to content

Commit 7291a68

Browse files
committed
Update stable version
Update stable version
1 parent 58da9e3 commit 7291a68

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

pybreeze/pybreeze_ui/editor_main/main_ui.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,13 +77,15 @@ def closeEvent(self, event) -> None:
7777
widget.close()
7878
super().closeEvent(event)
7979

80-
@classmethod
81-
def debug_close(cls) -> None:
80+
@staticmethod
81+
def debug_close() -> None:
8282
"""
8383
Use to run CI test.
8484
:return: None
8585
"""
86-
sys.exit(0)
86+
app = QApplication.instance()
87+
if app is not None:
88+
app.quit()
8789

8890

8991
def start_editor(debug_mode: bool = False, theme: str = "dark_amber.xml", **kwargs) -> None:
@@ -104,4 +106,5 @@ def start_editor(debug_mode: bool = False, theme: str = "dark_amber.xml", **kwar
104106
except Exception as error:
105107
from pybreeze.utils.logging.logger import pybreeze_logger
106108
pybreeze_logger.error(f"Startup setting error: {error}")
107-
sys.exit(new_ide.exec())
109+
ret = new_ide.exec()
110+
os._exit(ret)

stable.toml renamed to 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 = "pybreeze"
9-
version = "1.0.16"
9+
version = "1.0.17"
1010
authors = [
1111
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
1212
]

0 commit comments

Comments
 (0)