-
Notifications
You must be signed in to change notification settings - Fork 328
Ditch wallet model juggling #417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -131,6 +131,8 @@ WalletModel* WalletController::getOrCreateWallet(std::unique_ptr<interfaces::Wal | |
| wallet_model = new WalletModel(std::move(wallet), m_client_model, m_platform_style, this); | ||
| }, GUIUtil::blockingGUIThreadConnection()); | ||
|
|
||
| wallet_model->preload(); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In commit "qt: Move wallet preloading out of model constructors" (e2ffc98) I think it would be good to switch the order of the two commits so the other commit doesn't cause a performance regression, and so wallet preloading doesn't move from the outside thread to the GUI thread than back to the outside thread again within the PR. Additionally might suggest renaming Also would add a rationale to the commit description like:
|
||
|
|
||
| m_wallets.push_back(wallet_model); | ||
|
|
||
| // WalletModel::startPollBalance needs to be called in a thread managed by | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In a follow-up, some preload will be replaced by lazy loading.