From c54f75b31fd298a1fab1051a5324abe80235e6bf Mon Sep 17 00:00:00 2001 From: f321x Date: Wed, 7 May 2025 17:19:30 +0200 Subject: [PATCH] don't show ToU in regtest mode --- electrum/gui/qt/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/electrum/gui/qt/__init__.py b/electrum/gui/qt/__init__.py index 24fd4309b..6eb22f0b7 100644 --- a/electrum/gui/qt/__init__.py +++ b/electrum/gui/qt/__init__.py @@ -72,6 +72,7 @@ from electrum.simple_config import SimpleConfig from electrum.wizard import WizardViewState from electrum.keystore import load_keystore from electrum.bip32 import is_xprv +from electrum import constants from electrum.gui.common_qt.i18n import ElectrumTranslator from electrum.gui.messages import TERMS_OF_USE_LATEST_VERSION @@ -505,7 +506,8 @@ class ElectrumGui(BaseElectrumGui, Logger): """Ask the user to accept the terms of use. This is only shown if the user has not accepted them yet. """ - if self.config.TERMS_OF_USE_ACCEPTED >= TERMS_OF_USE_LATEST_VERSION: + if self.config.TERMS_OF_USE_ACCEPTED >= TERMS_OF_USE_LATEST_VERSION\ + or constants.net.NET_NAME == "regtest": return from electrum.gui.qt.wizard.terms_of_use import QETermsOfUseWizard dialog = QETermsOfUseWizard(self.config, self.app)