mirror of
https://github.com/monero-project/monero-gui
synced 2025-01-01 21:56:23 +01:00
Moving wallet to the user defined location at the "donation" page (pre-
final)
This commit is contained in:
parent
fd50e6f9a3
commit
b7787dc670
@ -49,19 +49,7 @@ Item {
|
|||||||
|
|
||||||
// put wallet files to the subdirectory with the same name as
|
// put wallet files to the subdirectory with the same name as
|
||||||
// wallet name
|
// wallet name
|
||||||
var new_wallet_filename = settingsObject.wallet_path + "/"
|
|
||||||
+ settingsObject.account_name + "/"
|
|
||||||
+ settingsObject.account_name;
|
|
||||||
|
|
||||||
// moving wallet files to the new destination, if user changed it
|
|
||||||
if (new_wallet_filename !== settingsObject.wallet_filename) {
|
|
||||||
// using previously saved wallet;
|
|
||||||
settingsObject.wallet.store(new_wallet_filename);
|
|
||||||
//walletManager.moveWallet(settingsObject.wallet_filename, new_wallet_filename);
|
|
||||||
}
|
|
||||||
|
|
||||||
// saving wallet_filename;
|
|
||||||
settingsObject['wallet_filename'] = new_wallet_filename;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//! function called each time we hide this page
|
//! function called each time we hide this page
|
||||||
|
@ -42,6 +42,23 @@ Item {
|
|||||||
settingsObject['auto_donations_enabled'] = enableAutoDonationCheckBox.checked;
|
settingsObject['auto_donations_enabled'] = enableAutoDonationCheckBox.checked;
|
||||||
settingsObject['auto_donations_amount'] = autoDonationAmountText.text;
|
settingsObject['auto_donations_amount'] = autoDonationAmountText.text;
|
||||||
settingsObject['allow_background_mining'] = allowBackgroundMiningCheckBox.checked;
|
settingsObject['allow_background_mining'] = allowBackgroundMiningCheckBox.checked;
|
||||||
|
|
||||||
|
// here we need to actually move wallet to the new location
|
||||||
|
// put wallet files to the subdirectory with the same name as
|
||||||
|
// wallet name
|
||||||
|
var new_wallet_filename = settingsObject.wallet_path + "/"
|
||||||
|
+ settingsObject.account_name + "/"
|
||||||
|
+ settingsObject.account_name;
|
||||||
|
|
||||||
|
// moving wallet files to the new destination, if user changed it
|
||||||
|
if (new_wallet_filename !== settingsObject.wallet_filename) {
|
||||||
|
// using previously saved wallet;
|
||||||
|
settingsObject.wallet.store(new_wallet_filename);
|
||||||
|
//walletManager.moveWallet(settingsObject.wallet_filename, new_wallet_filename);
|
||||||
|
}
|
||||||
|
|
||||||
|
// saving wallet_filename;
|
||||||
|
settingsObject['wallet_filename'] = new_wallet_filename;
|
||||||
}
|
}
|
||||||
|
|
||||||
Row {
|
Row {
|
||||||
|
Loading…
Reference in New Issue
Block a user