Merge pull request #3111

be1f63f9 PasswordDialog: configurable Ok btn text/icon, non-primary Cancel (xiphon)
This commit is contained in:
Alexander Blair
2020-09-28 19:09:32 -07:00
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
@@ -1488,7 +1490,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);
}
}
}