Don't allow disconnecting when we're connected by command line

This commit is contained in:
Michael Zanetti 2020-12-23 16:34:44 +01:00
parent a9ca7f28cc
commit c358c448b6

View File

@ -61,6 +61,8 @@ Drawer {
ProgressButton {
longpressEnabled: false
imageSource: "../images/close.svg"
// When we're connected via command line arg, don't allow disconnecting
visible: autoConnectHost.length === 0
onClicked: {
root.currentEngine.jsonRpcClient.disconnectFromHost();
root.close();