mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 12:54:30 +00:00
main: remove outdated code
This commit is contained in:
parent
113efbfdf0
commit
841f061520
1 changed files with 0 additions and 21 deletions
21
main.qml
21
main.qml
|
@ -310,27 +310,6 @@ ApplicationWindow {
|
||||||
function connectWallet(wallet) {
|
function connectWallet(wallet) {
|
||||||
currentWallet = wallet
|
currentWallet = wallet
|
||||||
|
|
||||||
// TODO:
|
|
||||||
// When the wallet variable is undefined, it yields a zero balance.
|
|
||||||
// This can scare users, restart the GUI (as a quick fix).
|
|
||||||
//
|
|
||||||
// To reproduce, follow these steps:
|
|
||||||
// 1) Open the GUI, load up a wallet that has a balance
|
|
||||||
// 2) Settings -> close wallet
|
|
||||||
// 3) Create a new wallet
|
|
||||||
// 4) Settings -> close wallet
|
|
||||||
// 5) Open the wallet from step 1
|
|
||||||
|
|
||||||
if(!wallet || wallet === undefined || wallet.path === undefined){
|
|
||||||
informationPopup.title = qsTr("Error") + translationManager.emptyString;
|
|
||||||
informationPopup.text = qsTr("Couldn't open wallet: ") + 'please restart GUI.';
|
|
||||||
informationPopup.icon = StandardIcon.Critical
|
|
||||||
informationPopup.open()
|
|
||||||
informationPopup.onCloseCallback = function() {
|
|
||||||
appWindow.close();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
walletName = usefulName(wallet.path)
|
walletName = usefulName(wallet.path)
|
||||||
|
|
||||||
viewOnly = currentWallet.viewOnly;
|
viewOnly = currentWallet.viewOnly;
|
||||||
|
|
Loading…
Reference in a new issue