add 'donate to server' menu item
This commit is contained in:
@@ -450,9 +450,17 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, PrintError):
|
||||
help_menu.addSeparator()
|
||||
help_menu.addAction(_("&Documentation"), lambda: webbrowser.open("http://docs.electrum.org/")).setShortcut(QKeySequence.HelpContents)
|
||||
help_menu.addAction(_("&Report Bug"), self.show_report_bug)
|
||||
help_menu.addSeparator()
|
||||
help_menu.addAction(_("&Donate to server"), self.donate_to_server)
|
||||
|
||||
self.setMenuBar(menubar)
|
||||
|
||||
def donate_to_server(self):
|
||||
if self.network.is_connected():
|
||||
d = self.network.get_donation_address()
|
||||
host = self.network.get_parameters()[0]
|
||||
self.pay_to_URI('bitcoin:%s?message=donation for %s'%(d, host))
|
||||
|
||||
def show_about(self):
|
||||
QMessageBox.about(self, "Electrum",
|
||||
_("Version")+" %s" % (self.wallet.electrum_version) + "\n\n" + _("Electrum's focus is speed, with low resource usage and simplifying Bitcoin. You do not need to perform regular backups, because your wallet can be recovered from a secret phrase that you can memorize or write on paper. Startup times are instant because it operates in conjunction with high-performance servers that handle the most complicated parts of the Bitcoin system."))
|
||||
|
||||
Reference in New Issue
Block a user