mirror of
https://github.com/monero-project/monero-gui.git
synced 2026-04-11 12:27:26 -04:00
Merge pull request #128
689f041 Report when the GUI is connected to a daemon with mismatched version (moneromooo.monero)
This commit is contained in:
7
main.qml
7
main.qml
@@ -284,7 +284,7 @@ ApplicationWindow {
|
||||
|
||||
// Daemon fully synced
|
||||
// TODO: implement onDaemonSynced or similar in wallet API and don't start refresh thread before daemon is synced
|
||||
daemonSynced = (currentWallet.connected && dCurrentBlock >= dTargetBlock)
|
||||
daemonSynced = (currentWallet.connected != Wallet.ConnectionStatus_Disconnected && dCurrentBlock >= dTargetBlock)
|
||||
|
||||
|
||||
|
||||
@@ -408,7 +408,10 @@ ApplicationWindow {
|
||||
if (transaction.status !== PendingTransaction.Status_Ok) {
|
||||
console.error("Can't create transaction: ", transaction.errorString);
|
||||
informationPopup.title = qsTr("Error") + translationManager.emptyString;
|
||||
informationPopup.text = qsTr("Can't create transaction: ") + transaction.errorString
|
||||
if (currentWallet.connected == Wallet.ConnectionStatus_WrongVersion)
|
||||
informationPopup.text = qsTr("Can't create transaction: Wrong daemon version: ") + transaction.errorString
|
||||
else
|
||||
informationPopup.text = qsTr("Can't create transaction: ") + transaction.errorString
|
||||
informationPopup.icon = StandardIcon.Critical
|
||||
informationPopup.onCloseCallback = null
|
||||
informationPopup.open();
|
||||
|
||||
Reference in New Issue
Block a user