forked from M-Labs/thermostat
Move command line host:port setting handling
To main
This commit is contained in:
parent
1256b5ff49
commit
71d1c7390a
@ -156,13 +156,6 @@ class MainWindow(QtWidgets.QMainWindow):
|
|||||||
|
|
||||||
self.loading_spinner.hide()
|
self.loading_spinner.hide()
|
||||||
|
|
||||||
if args.connect:
|
|
||||||
if args.HOST:
|
|
||||||
self.host_set_line.setText(args.HOST)
|
|
||||||
if args.PORT:
|
|
||||||
self.port_set_spin.setValue(int(args.PORT))
|
|
||||||
self.connect_btn.click()
|
|
||||||
|
|
||||||
def clear_graphs(self):
|
def clear_graphs(self):
|
||||||
self.channel_graphs.clear_graphs()
|
self.channel_graphs.clear_graphs()
|
||||||
|
|
||||||
@ -440,6 +433,13 @@ async def coro_main():
|
|||||||
main_window = MainWindow(args)
|
main_window = MainWindow(args)
|
||||||
main_window.show()
|
main_window.show()
|
||||||
|
|
||||||
|
if args.connect:
|
||||||
|
if args.HOST:
|
||||||
|
main_window.host_set_line.setText(args.HOST)
|
||||||
|
if args.PORT:
|
||||||
|
main_window.port_set_spin.setValue(int(args.PORT))
|
||||||
|
main_window.connect_btn.click()
|
||||||
|
|
||||||
await app_quit_event.wait()
|
await app_quit_event.wait()
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user