Skip to content

Commit 26e0d72

Browse files
Activated close application item in SuraPlayer.
1 parent a503c37 commit 26e0d72

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ui/sura_player_ui/menubar.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from PyQt6.QtWidgets import QMenuBar
1+
from PyQt6.QtWidgets import QMenuBar, QApplication
22
from PyQt6.QtGui import QAction, QKeyEvent
33
from PyQt6.QtCore import Qt, QEvent
44

@@ -29,6 +29,7 @@ def __init__(self, parent=None):
2929
close_window_action = QAction("إغلاق النافذة", self)
3030
close_window_action .triggered.connect(self.parent.OnClose)
3131
close_program_action = QAction("إغلاق البرنامج", self)
32+
close_program_action.triggered.connect(QApplication.exit)
3233

3334
# Add Actions to Menu
3435
main_menu.addAction(close_window_action)

0 commit comments

Comments
 (0)