Browse Source

qml: ConfirmTxDialog styling slider, avoid running off small screens

master
Sander van Grieken 3 years ago
parent
commit
8ccc4801f7
  1. 5
      electrum/gui/qml/components/ConfirmTxDialog.qml
  2. 4
      electrum/gui/qml/components/WalletMainView.qml

5
electrum/gui/qml/components/ConfirmTxDialog.qml

@ -174,8 +174,9 @@ ElDialog {
InfoTextArea {
Layout.columnSpan: 2
Layout.preferredWidth: parent.width * 3/4
Layout.alignment: Qt.AlignHCenter
Layout.fillWidth: true
Layout.topMargin: constants.paddingLarge
Layout.bottomMargin: constants.paddingLarge
visible: finalizer.warning != ''
text: finalizer.warning
iconStyle: InfoTextArea.IconStyle.Warn

4
electrum/gui/qml/components/WalletMainView.qml

@ -327,6 +327,10 @@ Item {
_confirmPaymentDialog.destroy()
}
}
// TODO: lingering confirmPaymentDialogs can raise exceptions in
// the child finalizer when currentWallet disappears, but we need
// it long enough for the finalizer to finish..
// onClosed: destroy()
}
}

Loading…
Cancel
Save