PasswordDialog: configurable Ok btn text/icon, non-primary Cancel

Co-authored-by: rating89us <45968869+rating89us@users.noreply.github.com>
This commit is contained in:
xiphon
2020-09-24 14:08:33 +00:00
parent 98ce87a572
commit be1f63f93d
3 changed files with 30 additions and 4 deletions

View File

@@ -33,6 +33,8 @@ import QtQuick.Controls.Styles 1.1
import QtQuick.Dialogs 1.2
import QtGraphicalEffects 1.0
import FontAwesome 1.0
import moneroComponents.Network 1.0
import moneroComponents.Wallet 1.0
import moneroComponents.WalletManager 1.0
@@ -1487,7 +1489,11 @@ ApplicationWindow {
if(!persistentSettings.askPasswordBeforeSending) {
handleAccepted()
} else {
passwordDialog.open()
passwordDialog.open(
"",
"",
(appWindow.viewOnly ? qsTr("Save transaction file") : qsTr("Send transaction")) + translationManager.emptyString,
appWindow.viewOnly ? "" : FontAwesome.arrowCircleRight);
}
}
}