Don't allow disconnecting when we're connected by command line
This commit is contained in:
parent
a9ca7f28cc
commit
c358c448b6
@ -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();
|
||||
|
||||
Reference in New Issue
Block a user