Add a Connect button next to the host field; unwire it from Start
Start/Pause/Stop on the toolbar were never about the websocket connection - Start now does nothing until that's wired to its own purpose, and connecting is its own explicit action next to the host text entry.
This commit is contained in:
@@ -176,7 +176,7 @@ class Window(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||
self.msg_sud.set_recv_handler(self.on_sud_changed)
|
||||
|
||||
self.setupUi(self)
|
||||
self.actionStart.triggered.connect(self.connect)
|
||||
self.btn_connect.clicked.connect(self.connect)
|
||||
self.actionStop.triggered.connect(self.disconnect)
|
||||
self.actionSudDownload.triggered.connect(self.on_action_sud_download)
|
||||
self.actionSudUpload.triggered.connect(self.on_action_sud_upload)
|
||||
|
||||
Reference in New Issue
Block a user