File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -96,9 +96,12 @@ Kirigami.OverlaySheet {
9696 }
9797 }
9898 QQC2 .Button {
99- text: model .isConnected ?
100- i18nc (" Button for the action of disconnecting a device, in the prompt for connecting a device" , " Disconnect" ) :
101- i18nc (" Button for the action of connecting a device, in the prompt for connecting a device" , " Connect" )
99+ text: model .isConnecting
100+ ? i18nc (" A label in the prompt for connecting to a device showing that the device is currently connecting" , " Connecting..." )
101+ : model .isConnected
102+ ? i18nc (" Button for the action of disconnecting a device, in the prompt for connecting a device" , " Disconnect" )
103+ : i18nc (" Button for the action of connecting a device, in the prompt for connecting a device" , " Connect" )
104+ enabled: model .isConnecting == false
102105 onClicked: {
103106 sheet .close ();
104107 if (model .isConnected ) {
You can’t perform that action at this time.
0 commit comments