diff --git a/Changelog.txt b/Changelog.txt index 4512520..2278e0a 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -1,3 +1,7 @@ + +2024-12-27 -- v0.9.6 +-- Fixed issue with closing the main window after opening and closing the immutable words list. + 2024-12-25 -- v0.9.5 -- Fixed issue with comparative mode diff --git a/negar_gui/constants.py b/negar_gui/constants.py index 26d81f1..14798c8 100644 --- a/negar_gui/constants.py +++ b/negar_gui/constants.py @@ -1,7 +1,7 @@ import platform from pathlib import Path -__version__ = "0.9.5" +__version__ = "0.9.6" APPDATA = "AppData/Roaming/" if platform.system() == "Windows" else "." SETTING_FILE = Path.home() / f"{APPDATA}negar-gui/settings.toml" diff --git a/negar_gui/main.py b/negar_gui/main.py index 31bc7a3..8c1407e 100644 --- a/negar_gui/main.py +++ b/negar_gui/main.py @@ -665,6 +665,8 @@ def closeEvent(self, event): # event = QEvent(QEvent.Clipboard) # QApplication.sendEvent(QApplication.clipboard(), event) pyclipcopy(self.copy_slot()) + # Exit the application when the main window is closed + QApplication.instance().quit() def showEvent(self, event): WindowSettings.showEvent(self, event)