summaryrefslogtreecommitdiff
path: root/pkg/backend/api.go
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2020-09-30 18:22:26 +0200
committerRuben Pollan <meskio@sindominio.net>2020-09-30 18:31:07 +0200
commit3a36d9c6c67876c84a8dd65334c00ec8399c6979 (patch)
tree83495593e4047490e8eeffa9132b97d6d956105c /pkg/backend/api.go
parent562af9100a9250f765fbae994775e326ce295fff (diff)
[feat] remove the donation dialog if not set in the providers.json
- Resolves: 336
Diffstat (limited to 'pkg/backend/api.go')
-rw-r--r--pkg/backend/api.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkg/backend/api.go b/pkg/backend/api.go
index d422bf3..b78605e 100644
--- a/pkg/backend/api.go
+++ b/pkg/backend/api.go
@@ -103,7 +103,9 @@ func InitializeBitmaskContext(opts *InitOpts) {
ctx.LoginDialog = ctx.bm.NeedsCredentials()
go ctx.updateStatus()
}
- runDonationReminder()
+ if ctx.AskForDonations {
+ runDonationReminder()
+ }
}
func RefreshContext() *C.char {