1
0

qt: show send tab if payment identifier is passed on the cmdline

This commit is contained in:
Sander van Grieken
2023-07-07 20:48:29 +02:00
parent 9b41bcf992
commit db6779bf04
2 changed files with 7 additions and 6 deletions

View File

@@ -365,12 +365,6 @@ def main():
if not config_options.get('verbosity'):
warnings.simplefilter('ignore', DeprecationWarning)
# check if we received a valid payment identifier
uri = config_options.get('url')
if uri and not PaymentIdentifier(None, uri).is_valid():
print_stderr('unknown command:', uri)
sys.exit(1)
config = SimpleConfig(config_options)
cmdname = config.get('cmd')
@@ -398,6 +392,12 @@ def main():
elif config.get('signet'):
constants.set_signet()
# check if we received a valid payment identifier
uri = config_options.get('url')
if uri and not PaymentIdentifier(None, uri).is_valid():
print_stderr('unknown command:', uri)
sys.exit(1)
if cmdname == 'daemon' and config.get("detach"):
# detect lockfile.
# This is not as good as get_file_descriptor, but that would require the asyncio loop