mirror of
https://github.com/monero-project/monero-gui
synced 2024-12-25 01:53:43 +01:00
add default argument to store()
This commit is contained in:
parent
7c9d2231cc
commit
4e61ebeedb
3
main.qml
3
main.qml
@ -294,8 +294,7 @@ ApplicationWindow {
|
|||||||
// Wallet is nomrmally saved to disk on app exit. This prevents rescan from block 0 after app crash
|
// Wallet is nomrmally saved to disk on app exit. This prevents rescan from block 0 after app crash
|
||||||
if(isNewWallet){
|
if(isNewWallet){
|
||||||
console.log("Saving wallet after first refresh");
|
console.log("Saving wallet after first refresh");
|
||||||
//TODO: Doesn't need path argument after creation. Change libwalletqt
|
currentWallet.store()
|
||||||
currentWallet.store("")
|
|
||||||
isNewWallet = false
|
isNewWallet = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,7 +79,8 @@ public:
|
|||||||
QString address() const;
|
QString address() const;
|
||||||
|
|
||||||
//! saves wallet to the file by given path
|
//! saves wallet to the file by given path
|
||||||
Q_INVOKABLE bool store(const QString &path);
|
//! empty path stores in current location
|
||||||
|
Q_INVOKABLE bool store(const QString &path = "");
|
||||||
|
|
||||||
//! initializes wallet
|
//! initializes wallet
|
||||||
Q_INVOKABLE bool init(const QString &daemonAddress, quint64 upperTransactionLimit, bool isRecovering = false, quint64 restoreHeight = 0);
|
Q_INVOKABLE bool init(const QString &daemonAddress, quint64 upperTransactionLimit, bool isRecovering = false, quint64 restoreHeight = 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user