Skip to content

Commit

Permalink
Added Replay feature.
Browse files Browse the repository at this point in the history
  • Loading branch information
ZeinabBahaa committed Dec 18, 2024
1 parent 806acd6 commit 1d9abe6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/widgets/menu_bar.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ def create_menu(self):
self.forward_action = QAction("تقديم", self)
self.forward_action.setShortcuts([QKeySequence("L"), QKeySequence("Ctrl+Alt+Right")])
self.forward_action.triggered.connect(lambda: self.parent.toolbar.player.forward(SettingsManager.current_settings["listening"]["forward_time"]))
self.replay_action = QAction("إعادة", self)
self.replay_action.setShortcut(QKeySequence("Ctrl+J"))
self.replay_action.triggered.connect(lambda: self.parent.toolbar.player.rewind(500))

self.play_next_action = QAction("تشغيل الآية التالية", self)
self.play_next_action.setShortcut(QKeySequence("Ctrl+Shift+N"))
self.play_next_action.setEnabled(False)
Expand All @@ -93,9 +97,11 @@ def create_menu(self):
player_menu.addAction(self.stop_action)
player_menu.addAction(self.rewind_action)
player_menu.addAction(self.forward_action)
player_menu.addAction(self.replay_action)
player_menu.addAction(self.play_next_action)
player_menu.addAction(self.play_previous_action)


actions_menu = self.addMenu("الإجرائات(&A)")
self.save_position_action = QAction("حفظ الموضع الحالي", self)
self.save_position_action.setShortcut(QKeySequence("Ctrl+S"))
Expand Down

0 comments on commit 1d9abe6

Please sign in to comment.