diff options
author | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-05-27 19:07:05 +0100 |
---|---|---|
committer | João Barbosa <joao.paulo.barbosa@gmail.com> | 2019-07-08 15:03:49 +0100 |
commit | 224eb9534a8d2b0f140ecb0cc00c61af8ba1da4e (patch) | |
tree | 18a876a6a2ec1af930fa8e9e1300d4be89ca0424 /src/qt/walletcontroller.h | |
parent | b5fa2319d86343499ae0c49605d379a20038ca85 (diff) |
gui: Sort wallets in open wallet menu
Diffstat (limited to 'src/qt/walletcontroller.h')
-rw-r--r-- | src/qt/walletcontroller.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/qt/walletcontroller.h b/src/qt/walletcontroller.h index 19b3a82253..dcd64aac7b 100644 --- a/src/qt/walletcontroller.h +++ b/src/qt/walletcontroller.h @@ -8,7 +8,7 @@ #include <qt/walletmodel.h> #include <sync.h> -#include <list> +#include <map> #include <memory> #include <vector> @@ -41,7 +41,10 @@ public: ~WalletController(); std::vector<WalletModel*> getWallets() const; - std::vector<std::string> getWalletsAvailableToOpen() const; + + //! Returns all wallet names in the wallet dir mapped to whether the wallet + //! is loaded. + std::map<std::string, bool> listWalletDir() const; OpenWalletActivity* openWallet(const std::string& name, QWidget* parent = nullptr); void closeWallet(WalletModel* wallet_model, QWidget* parent = nullptr); |