Skip to content

Commit 296db07

Browse files
committed
qtdragon -react to ok and cancel messages
1 parent 507a451 commit 296db07

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

share/qtvcp/screens/qtdragon/qtdragon_handler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,8 @@ def __init__(self, halcomp, widgets, paths):
155155
STATUS.connect('cycle-start-request', lambda w, state :self.btn_start_clicked(state))
156156
STATUS.connect('cycle-pause-request', lambda w, state: self.ext_pause_toggled(state))
157157
STATUS.connect('macro-call-request', lambda w, name: self.request_macro_call(name))
158+
STATUS.connect('ok-request', lambda w, state: self.dialog_ext_control(w,1,1))
159+
STATUS.connect('cancel-request', lambda w, state: self.dialog_ext_control(w,1,0))
158160

159161
self.swoopPath = os.path.join(paths.IMAGEDIR,'lcnc_swoop.png')
160162
self.swoopURL = QtCore.QUrl.fromLocalFile(self.swoopPath)

0 commit comments

Comments
 (0)