aboutsummaryrefslogtreecommitdiffstats
path: root/wee_slack.py
diff options
context:
space:
mode:
authorTrygve Aaberge <trygveaa@gmail.com>2020-02-13 18:52:04 +0100
committerTrygve Aaberge <trygveaa@gmail.com>2020-02-23 18:55:07 +0100
commit2c74d66ea9ef30ed83da762313e6320685a2916d (patch)
treee3d71e59b17ab96691cd3a4729830ad58c4feb57 /wee_slack.py
parentc0abd821737886ae6b6eb027c1ac08b0e31f125b (diff)
downloadwee-slack-2c74d66ea9ef30ed83da762313e6320685a2916d.tar.gz
Don't switch to the debug buffer when config is changed
Diffstat (limited to 'wee_slack.py')
-rw-r--r--wee_slack.py4
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")