File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ def __init__(self):
4343 self .setMouseTracking (True )
4444
4545 __generateFunscript = QtCore .pyqtSignal ()
46+ __openVideo = QtCore .pyqtSignal ()
4647 __logger = logging .getLogger (__name__ )
4748
4849
@@ -128,6 +129,7 @@ def __setup_ui_binding(self):
128129 helpMenu .addAction (str ('Version ' + VERSION ))
129130 self .ui .seekBar .sliderReleased .connect (lambda : self .video_player .seek_frame (self .ui .seekBar .value ()))
130131
132+ self .__openVideo .connect (self .__open_video )
131133 self .__generateFunscript .connect (self .__generate_funscript )
132134
133135 def __setup_shortcut_bindings (self ):
@@ -236,7 +238,7 @@ def __video_player_on_key_press(self, key):
236238 if key == 'shift+end' : self .__seek_to_last_action ()
237239 if key == 'shift+home' : self .__seek_to_first_action ()
238240 if key == 'ctrl+n' : self .__new_funscript ()
239- if key == 'ctrl+o' : self .__open_video ()
241+ if key == 'ctrl+o' : self .__openVideo . emit ()
240242 if key == 'ctrl+c' : self .__clear_funscript_history ()
241243
242244 def __show_message (self , message ):
You can’t perform that action at this time.
0 commit comments