From 18ba57e32aa3666943b5ea887e91d5b63a61c593 Mon Sep 17 00:00:00 2001 From: Eana Hufwe Date: Sun, 8 Mar 2020 12:04:43 +0800 Subject: [PATCH] fix: experimental features config wizard breaks on multiple choices. fixes #99 --- CHANGES.rst | 1 + efb_wechat_slave/__version__.py | 2 +- efb_wechat_slave/wizard.py | 4 ++-- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index e3ffa39..34f854d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -27,6 +27,7 @@ Removed Fixed ----- +- Experimental features config wizard breaks on multiple choices. Known issue ----------- diff --git a/efb_wechat_slave/__version__.py b/efb_wechat_slave/__version__.py index 713ce9f..4bff593 100644 --- a/efb_wechat_slave/__version__.py +++ b/efb_wechat_slave/__version__.py @@ -1,3 +1,3 @@ # coding: utf-8 -__version__ = "2.0.1.dev1" +__version__ = "2.0.1.dev2" diff --git a/efb_wechat_slave/wizard.py b/efb_wechat_slave/wizard.py index 1d4cdce..f0c2fac 100644 --- a/efb_wechat_slave/wizard.py +++ b/efb_wechat_slave/wizard.py @@ -91,7 +91,7 @@ def save(self): ' Note: QR code might change frequently.' )), "on_log_out": - ("command", 'choices', ['idle', 'reauth', 'command'], + (2, 'choices', ['idle', 'reauth', 'command'], _('Behavior when WeChat server logged your account out.\n' '\n' 'Options:\n' @@ -111,7 +111,7 @@ def save(self): 'disabled by default.' )), "app_shared_link_mode": - ('ignore', 'choices', ['ignore', 'upload', 'image'], + (0, 'choices', ['ignore', 'upload', 'image'], _('Behavior to deal with thumbnails when a message shared by 3rd ' 'party apps is received.\n' '\n'