diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-02-13 18:52:04 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-02-23 18:55:07 +0100 |
commit | 2c74d66ea9ef30ed83da762313e6320685a2916d (patch) | |
tree | e3d71e59b17ab96691cd3a4729830ad58c4feb57 | |
parent | c0abd821737886ae6b6eb027c1ac08b0e31f125b (diff) | |
download | wee-slack-2c74d66ea9ef30ed83da762313e6320685a2916d.tar.gz |
Don't switch to the debug buffer when config is changed
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/wee_slack.py b/wee_slack.py index 2c5b165..7f4d3d8 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -4410,9 +4410,7 @@ def closed_slack_debug_buffer_cb(data, buffer): def create_slack_debug_buffer(): global slack_debug, debug_string - if slack_debug is not None: - w.buffer_set(slack_debug, "display", "1") - else: + if slack_debug is None: debug_string = None slack_debug = w.buffer_new("slack-debug", "", "", "closed_slack_debug_buffer_cb", "") w.buffer_set(slack_debug, "notify", "0") |