From f0fc8a96917cd0adbd9f55d0fbefa76dbe2b5095 Mon Sep 17 00:00:00 2001 From: f321x Date: Fri, 23 Jan 2026 10:14:09 +0100 Subject: [PATCH] qt: add changelog action to help menu in toolbar Adds a "Changelog" action to the "Help" menu of the toolbar. This allows users to open the RELEASE-NOTES file in the browser (from github). --- electrum/constants.py | 1 + electrum/gui/qt/main_window.py | 1 + 2 files changed, 2 insertions(+) diff --git a/electrum/constants.py b/electrum/constants.py index a2379c045..b4b88d11b 100644 --- a/electrum/constants.py +++ b/electrum/constants.py @@ -57,6 +57,7 @@ def create_fallback_node_list(fallback_nodes_dict: dict[str, dict]) -> List[LNPe GIT_REPO_URL = "https://github.com/spesmilo/electrum" GIT_REPO_ISSUES_URL = "https://github.com/spesmilo/electrum/issues" +RELEASE_NOTES_URL = "https://raw.githubusercontent.com/spesmilo/electrum/refs/heads/master/RELEASE-NOTES" BIP39_WALLET_FORMATS = read_json('bip39_wallet_formats.json') diff --git a/electrum/gui/qt/main_window.py b/electrum/gui/qt/main_window.py index fe4e7fb5f..065a295e3 100644 --- a/electrum/gui/qt/main_window.py +++ b/electrum/gui/qt/main_window.py @@ -847,6 +847,7 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger, QtEventListener): about_action.triggered.connect(self.show_about) about_action.setMenuRole(QAction.MenuRole.AboutRole) # make sure OS recognizes it as "About" self.help_menu.addAction(about_action) + self.help_menu.addAction(_("&Changelog"), lambda: webopen(constants.RELEASE_NOTES_URL)) self.help_menu.addAction(_("&Check for updates"), self.show_update_check) self.help_menu.addAction(_("&Official website"), lambda: webopen("https://electrum.org")) self.help_menu.addSeparator()