Fix KDE Connect Unpair button

This commit is contained in:
Victor Tran 2018-06-27 17:31:17 +10:00
parent 3e3883ce46
commit b5d7acbac0
No known key found for this signature in database
GPG key ID: FBA10B22D602BAC1
25 changed files with 512 additions and 510 deletions

View file

@ -146,7 +146,7 @@ void KdeConnectWidget::on_pairButton_clicked()
{
QDBusInterface interface("org.kde.kdeconnect", "/modules/kdeconnect/devices/" + currentId, "org.kde.kdeconnect.device");
if (interface.property("isTrusted").toBool()) {
if (QMessageBox::question(this, tr("Unpair Device"), tr("Do you want to unpair this device?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::No) == QMessageBox::No) {
if (QMessageBox::question(this, tr("Unpair Device"), tr("Do you want to unpair this device?"), QMessageBox::Yes | QMessageBox::No, QMessageBox::No) == QMessageBox::Yes) {
QDBusPendingCallWatcher* watcher = new QDBusPendingCallWatcher(interface.asyncCall("unpair"));
connect(watcher, &QDBusPendingCallWatcher::finished, [=] {
watcher->deleteLater();

View file

@ -3654,18 +3654,18 @@ Items that will be kept if you choose to keep files:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation>Alright</translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation>Boom</translation>
</message>

View file

@ -3642,18 +3642,18 @@ Items that will be kept if you choose to keep files:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>

View file

@ -3578,7 +3578,7 @@ At ændre denne indstilling kræver at du logger ud og ind.</translation>
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation>Næste</translation>
</message>
@ -3663,13 +3663,13 @@ At ændre denne indstilling kræver at du logger ud og ind.</translation>
<translation>Tilbage</translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation>Velkommen til theShell %1!</translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation type="unfinished">Start</translation>
</message>

Binary file not shown.

File diff suppressed because it is too large Load diff

View file

@ -3651,18 +3651,18 @@ Items that will be kept if you choose to keep files:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>

View file

@ -3651,18 +3651,18 @@ Items that will be kept if you choose to keep files:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>

View file

@ -3651,18 +3651,18 @@ Items that will be kept if you choose to keep files:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>

View file

@ -3571,7 +3571,7 @@ Items that will be kept if you choose to keep files:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation type="unfinished"></translation>
</message>
@ -3656,13 +3656,13 @@ Items that will be kept if you choose to keep files:
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>

View file

@ -3565,7 +3565,7 @@ Items that will be kept if you choose to keep files:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation>Siguiente</translation>
</message>
@ -3650,13 +3650,13 @@ Items that will be kept if you choose to keep files:
<translation>Atras</translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation type="unfinished">Iniciar</translation>
</message>

View file

@ -3642,18 +3642,18 @@ Items that will be kept if you choose to keep files:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>

View file

@ -3651,18 +3651,18 @@ Items that will be kept if you choose to keep files:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>

View file

@ -3586,7 +3586,7 @@ Daiktai kurie bus palikti:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation>Toliau</translation>
</message>
@ -3671,13 +3671,13 @@ Daiktai kurie bus palikti:
<translation>Grįžti</translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation>Sveiki į theShell %1!</translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation>Pradėti</translation>
</message>

View file

@ -3651,18 +3651,18 @@ Items that will be kept if you choose to keep files:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>

View file

@ -3656,18 +3656,18 @@ Items die bewaard zullen worden als u ervoor kiest om bestanden te bewaren:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation>Volgende</translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation>Welkom bij theShell %1!</translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation>Start</translation>
</message>

View file

@ -3651,18 +3651,18 @@ Items that will be kept if you choose to keep files:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>

View file

@ -3605,7 +3605,7 @@ Zawartość która pozostanie po wybraniu opcji zachowania plików:-
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation>Dalej</translation>
</message>
@ -3670,13 +3670,13 @@ Zawartość która pozostanie po wybraniu opcji zachowania plików:-
<translation>Wstecz</translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation>Witamy w theShell, %1!</translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation type="unfinished">Start</translation>
</message>

View file

@ -3566,7 +3566,7 @@ Items that will be kept if you choose to keep files:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation type="unfinished"></translation>
</message>
@ -3651,13 +3651,13 @@ Items that will be kept if you choose to keep files:
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation type="unfinished">Começar</translation>
</message>

View file

@ -3660,18 +3660,18 @@ Items that will be kept if you choose to keep files:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation type="unfinished"></translation>
</message>

View file

@ -3562,7 +3562,7 @@ Items that will be kept if you choose to keep files:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation>Далее</translation>
</message>
@ -3647,13 +3647,13 @@ Items that will be kept if you choose to keep files:
<translation>Назад</translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation type="unfinished"></translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation type="unfinished">Начать</translation>
</message>

Binary file not shown.

File diff suppressed because it is too large Load diff

Binary file not shown.

View file

@ -163,7 +163,7 @@
<message>
<location filename="../background.cpp" line="387"/>
<source>by %1</source>
<translation type="unfinished"></translation>
<translation>bởi %1</translation>
</message>
<message>
<location filename="../background.cpp" line="498"/>
@ -291,7 +291,7 @@
<message>
<location filename="../choosebackground.cpp" line="88"/>
<source>by %1</source>
<translation type="unfinished"></translation>
<translation type="unfinished">bởi %1</translation>
</message>
<message>
<location filename="../choosebackground.cpp" line="165"/>
@ -2977,7 +2977,7 @@ Tập tin này có thể giữ lại:
<location filename="../locktypes/mousepassword.ui" line="203"/>
<location filename="../locktypes/mousepassword.cpp" line="228"/>
<source>Next</source>
<translation type="unfinished">Tiếp</translation>
<translation>Tiếp</translation>
</message>
<message>
<location filename="../locktypes/mousepassword.cpp" line="176"/>
@ -2997,7 +2997,7 @@ Tập tin này có thể giữ lại:
<message>
<location filename="../locktypes/mousepassword.cpp" line="202"/>
<source>Unauthorized</source>
<translation type="unfinished">Không đưc phép</translation>
<translation>Không đưc phép</translation>
</message>
<message>
<location filename="../locktypes/mousepassword.cpp" line="202"/>
@ -3506,28 +3506,28 @@ Tập tin này có thể giữ lại:
<message numerus="yes">
<location filename="../notificationsWidget/notificationpanel.cpp" line="54"/>
<source>%n d</source>
<translation type="unfinished">
<numerusform></numerusform>
<translation>
<numerusform>%n ng</numerusform>
</translation>
</message>
<message numerus="yes">
<location filename="../notificationsWidget/notificationpanel.cpp" line="56"/>
<source>%n hr</source>
<translation type="unfinished">
<numerusform></numerusform>
<translation>
<numerusform>%n giờ</numerusform>
</translation>
</message>
<message numerus="yes">
<location filename="../notificationsWidget/notificationpanel.cpp" line="58"/>
<source>%n min</source>
<translation type="unfinished">
<numerusform></numerusform>
<translation>
<numerusform>%n ph</numerusform>
</translation>
</message>
<message>
<location filename="../notificationsWidget/notificationpanel.cpp" line="60"/>
<source>just now</source>
<translation type="unfinished"></translation>
<translation>vừa báo</translation>
</message>
</context>
<context>
@ -3567,7 +3567,7 @@ Tập tin này có thể giữ lại:
</message>
<message>
<location filename="../onboarding.ui" line="1042"/>
<location filename="../onboarding.cpp" line="177"/>
<location filename="../onboarding.cpp" line="197"/>
<source>Next</source>
<translation>Tiếp</translation>
</message>
@ -3652,13 +3652,13 @@ Tập tin này có thể giữ lại:
<translation>Lại</translation>
</message>
<message>
<location filename="../onboarding.cpp" line="123"/>
<location filename="../onboarding.cpp" line="375"/>
<location filename="../onboarding.cpp" line="143"/>
<location filename="../onboarding.cpp" line="395"/>
<source>Welcome to theShell %1!</source>
<translation>Chào mừng bạn đến theShell %1!</translation>
</message>
<message>
<location filename="../onboarding.cpp" line="193"/>
<location filename="../onboarding.cpp" line="213"/>
<source>Start</source>
<translation>Bắt đầu</translation>
</message>