Skip to content

Commit c5bf4fd

Browse files
committed
Update dev version
* Fix debug close
1 parent 6035c41 commit c5bf4fd

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

je_editor/pyside_ui/main_ui/main_editor.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -505,10 +505,13 @@ def close_tab(self, index: int):
505505
widget.close()
506506
self.tab_widget.removeTab(index)
507507

508-
@classmethod
509-
def debug_close(cls):
508+
@staticmethod
509+
def debug_close():
510510
"""
511511
除錯模式下自動關閉程式
512512
Auto-close the program in debug mode
513513
"""
514-
sys.exit(0)
514+
from PySide6.QtWidgets import QApplication
515+
app = QApplication.instance()
516+
if app is not None:
517+
app.quit()

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_dev"
9-
version = "1.0.10"
9+
version = "1.0.11"
1010
authors = [
1111
{ name = "JE-Chen", email = "jechenmailman@gmail.com" },
1212
]

0 commit comments

Comments
 (0)