From 9a943120a8c383db257ba2750438dc684db0c363 Mon Sep 17 00:00:00 2001 From: miruka Date: Fri, 10 Jul 2020 03:16:20 -0400 Subject: [PATCH] Show how many devices will be deleted in popup --- src/gui/Popups/DeleteDevicesPopup.qml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gui/Popups/DeleteDevicesPopup.qml b/src/gui/Popups/DeleteDevicesPopup.qml index 1ddf4c13..cde21def 100644 --- a/src/gui/Popups/DeleteDevicesPopup.qml +++ b/src/gui/Popups/DeleteDevicesPopup.qml @@ -39,7 +39,11 @@ PasswordPopup { qsTr("Enter your account's password to continue:") - validateButton.text: qsTr("Sign out") + validateButton.text: + deviceIds.length > 1 ? + qsTr("Sign out %1 devices").arg(deviceIds.length) : + qsTr("Sign out %1 device").arg(deviceIds.length) + validateButton.icon.name: "sign-out" onClosed: {