-
Notifications
You must be signed in to change notification settings - Fork 927
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes panel favicon Resolves brave/brave-browser#1719 Resolves brave/brave-browser#1792
- Loading branch information
Showing
3 changed files
with
26 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -511,6 +511,13 @@ void RewardsServiceImpl::Shutdown() { | |
void RewardsServiceImpl::OnWalletInitialized(ledger::Result result) { | ||
if (!ready_.is_signaled()) | ||
ready_.Signal(); | ||
|
||
if (result == ledger::Result::WALLET_CREATED) { | ||
SetRewardsMainEnabled(true); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
bridiver
Collaborator
|
||
SetAutoContribute(true); | ||
result = ledger::Result::LEDGER_OK; | ||
} | ||
|
||
TriggerOnWalletInitialized(result); | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@NejcZdovc I don't think these calls should be here. If MainEnabled and AutoContribute should be set to
true
on wallet creation then the lib should handle that when it calls OnWalletInitialized on the client. Otherwise this behavior can be inconsistent between clients.