mirror of
https://github.com/monero-project/monero-gui.git
synced 2024-12-23 03:59:38 +00:00
Merge pull request #3437
7558a23
main: remove minor switch/case code duplication (selsta)
This commit is contained in:
commit
5c2076daa1
1 changed files with 0 additions and 6 deletions
6
main.qml
6
main.qml
|
@ -534,12 +534,6 @@ ApplicationWindow {
|
|||
// try to resolve common wallet cache errors automatically
|
||||
switch (wallet.errorString) {
|
||||
case "basic_string::_M_replace_aux":
|
||||
walletManager.clearWalletCache(wallet.path);
|
||||
walletPassword = passwordDialog.password;
|
||||
appWindow.initialize();
|
||||
console.error("Repairing wallet cache with error: ", wallet.errorString);
|
||||
appWindow.showStatusMessage(qsTr("Repairing incompatible wallet cache. Resyncing wallet."),6);
|
||||
return;
|
||||
case "std::bad_alloc":
|
||||
walletManager.clearWalletCache(wallet.path);
|
||||
walletPassword = passwordDialog.password;
|
||||
|
|
Loading…
Reference in a new issue