Fixed progress indicator incorrectly being displayed after unpiring
This commit is contained in:
parent
7bdf26927d
commit
02bc1bcd90
1 changed files with 6 additions and 6 deletions
12
kcm/kcm.cpp
12
kcm/kcm.cpp
|
@ -252,18 +252,18 @@ void KdeConnectKcm::pairingFailed(const QString& error)
|
||||||
kcmUi->messages->animatedShow();
|
kcmUi->messages->animatedShow();
|
||||||
}
|
}
|
||||||
|
|
||||||
void KdeConnectKcm::pairingChanged(bool pairing)
|
void KdeConnectKcm::pairingChanged(bool paired)
|
||||||
{
|
{
|
||||||
DeviceDbusInterface* senderDevice = (DeviceDbusInterface*) sender();
|
DeviceDbusInterface* senderDevice = (DeviceDbusInterface*) sender();
|
||||||
devicesModel->deviceStatusChanged(senderDevice->id());
|
devicesModel->deviceStatusChanged(senderDevice->id());
|
||||||
|
|
||||||
if (senderDevice != currentDevice) return;
|
if (senderDevice != currentDevice) return;
|
||||||
|
|
||||||
kcmUi->pair_button->setVisible(!pairing);
|
kcmUi->pair_button->setVisible(!paired);
|
||||||
kcmUi->unpair_button->setVisible(pairing);
|
kcmUi->unpair_button->setVisible(paired);
|
||||||
kcmUi->progressBar->setVisible(!pairing);
|
kcmUi->progressBar->setVisible(senderDevice->pairRequested());
|
||||||
kcmUi->ping_button->setVisible(pairing);
|
kcmUi->ping_button->setVisible(paired);
|
||||||
kcmUi->status_label->setText(pairing ? i18n("(paired)") : i18n("(unpaired)"));
|
kcmUi->status_label->setText(paired ? i18n("(paired)") : i18n("(unpaired)"));
|
||||||
}
|
}
|
||||||
|
|
||||||
void KdeConnectKcm::pluginsConfigChanged()
|
void KdeConnectKcm::pluginsConfigChanged()
|
||||||
|
|
Loading…
Reference in a new issue