Skip to content

Commit

Permalink
(fix) closeEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
javadr committed Dec 27, 2024
1 parent 6a4798e commit c3fde00
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion negar_gui/constants.py
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 2 additions & 0 deletions negar_gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c3fde00

Please sign in to comment.