From 2079772a55e593b75b64d7eb18738dfbaa64dfda Mon Sep 17 00:00:00 2001
From: Ruben Pollan <meskio@sindominio.net>
Date: Fri, 2 Oct 2020 11:18:19 +0200
Subject: [PATCH] [ui] disable the donate entry on the menu if no donation

---
 gui/qml/main.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gui/qml/main.qml b/gui/qml/main.qml
index adf11bd2..367debe6 100644
--- a/gui/qml/main.qml
+++ b/gui/qml/main.qml
@@ -252,7 +252,7 @@ ApplicationWindow {
 
             MenuItem {
                 text: qsTr("Donate...")
-                visible: true
+                visible: ctx && ctx.donateURL
                 onTriggered: { donate.visible = true }
             }
 
-- 
GitLab