Skip to content
Snippets Groups Projects
Commit d8101ac4 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Remove unused code

parent 3e5da209
No related branches found
No related tags found
No related merge requests found
......@@ -57,8 +57,7 @@ class SettingKind(IntEnum):
FILECHOOSER = 10
CHANGEPASSWORD = 11
COMBO = 12
CHATSTATE_COMBO = 13
COLOR = 14
COLOR = 13
@unique
......
......@@ -98,7 +98,6 @@ def __init__(self, account, extend=None):
SettingKind.HOSTNAME: CutstomHostnameSetting,
SettingKind.CHANGEPASSWORD: ChangePasswordSetting,
SettingKind.COMBO: ComboSetting,
SettingKind.CHATSTATE_COMBO: ChatstateComboSetting,
}
if extend is not None:
......@@ -575,15 +574,6 @@ def on_row_activated(self):
pass
class ChatstateComboSetting(ComboSetting):
def on_value_change(self, combo):
self.set_value(combo.get_active_id())
if 'muc' in self.value:
app.config.del_all_per('rooms', 'send_chatstate')
else:
app.config.del_all_per('contacts', 'send_chatstate')
class ProxyComboSetting(GenericSetting):
__gproperties__ = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment