From e1cd905163360a1ea169b893eaa4876be85ba94a Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Fri, 19 Aug 2016 15:06:08 +0200 Subject: [PATCH] Move :window-only below :debug-log-* in utilcmds --- qutebrowser/misc/utilcmds.py | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/qutebrowser/misc/utilcmds.py b/qutebrowser/misc/utilcmds.py index e8324e2b8..dcb1ce7d0 100644 --- a/qutebrowser/misc/utilcmds.py +++ b/qutebrowser/misc/utilcmds.py @@ -249,15 +249,6 @@ def log_capacity(capacity: int): log.ram_handler.change_log_capacity(capacity) -@cmdutils.register() -@cmdutils.argument('current_win_id', win_id=True) -def window_only(current_win_id): - """Close all windows except for the current one.""" - for win_id, window in objreg.window_registry.items(): - if win_id != current_win_id: - window.close() - - @cmdutils.register(debug=True) @cmdutils.argument('level', choices=sorted( (level.lower() for level in log.LOG_LEVELS), @@ -286,3 +277,12 @@ def debug_log_filter(filters: str): raise cmdexc.CommandError("filters: Invalid value {} - expected one " "of: {}".format(filters, ', '.join(log.LOGGER_NAMES))) + + +@cmdutils.register() +@cmdutils.argument('current_win_id', win_id=True) +def window_only(current_win_id): + """Close all windows except for the current one.""" + for win_id, window in objreg.window_registry.items(): + if win_id != current_win_id: + window.close()