From 3a36d9c6c67876c84a8dd65334c00ec8399c6979 Mon Sep 17 00:00:00 2001
From: Ruben Pollan <meskio@sindominio.net>
Date: Wed, 30 Sep 2020 18:22:26 +0200
Subject: [PATCH] [feat] remove the donation dialog if not set in the
 providers.json

- Resolves: 336
---
 pkg/backend/api.go | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/pkg/backend/api.go b/pkg/backend/api.go
index d422bf36..b78605e6 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 {
-- 
GitLab