diff --git a/deluge_peerbanhelperadapter/gtk3ui.py b/deluge_peerbanhelperadapter/gtk3ui.py index 62eb7b8..5df19a5 100644 --- a/deluge_peerbanhelperadapter/gtk3ui.py +++ b/deluge_peerbanhelperadapter/gtk3ui.py @@ -59,7 +59,8 @@ def cb_get_config(self, config): self.update_text_blocklist(blocklist) def update_text_blocklist(self, blocklist): - if not blocklist: + if not blocklist or len(blocklist) == 0: + self.builder.get_object("text_blocklist").get_buffer().set_text('', 0) return text = '\n'.join([ip for ip in blocklist]) self.builder.get_object("text_blocklist").get_buffer().set_text(text, len(text)) diff --git a/setup.py b/setup.py index cb68888..5151ada 100644 --- a/setup.py +++ b/setup.py @@ -11,7 +11,7 @@ __plugin_name__ = 'PeerBanHelperAdapter' __author__ = 'azicen' __author_email__ = 'chenjiazi2000@outlook.com' -__version__ = '0.0.1' +__version__ = '0.1' __url__ = 'https://github.com/PBH-BTN/PBH-Adapter-Deluge' __license__ = 'MIT license' __description__ = 'PeerBanHelper Deluge Adapter Plugin.'