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

pull/488/head
Michael Zanetti 2020-12-23 16:34:44 +01:00
parent a9ca7f28cc
commit c358c448b6
1 changed files with 2 additions and 0 deletions

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();