Philipp Hörist pushed to branch master at gajim / gajim
Commits:
d8101ac4 by lovetox at 2020-07-29T15:43:48+02:00
Remove unused code
- - - - -
2 changed files:
- gajim/gtk/const.py
- gajim/gtk/settings.py
Changes:
=====================================
gajim/gtk/const.py
=====================================
@@ -57,8 +57,7 @@ class SettingKind(IntEnum):
FILECHOOSER = 10
CHANGEPASSWORD = 11
COMBO = 12
- CHATSTATE_COMBO = 13
- COLOR = 14
+ COLOR = 13
@unique
=====================================
gajim/gtk/settings.py
=====================================
@@ -98,7 +98,6 @@ class SettingsBox(Gtk.ListBox):
SettingKind.HOSTNAME: CutstomHostnameSetting,
SettingKind.CHANGEPASSWORD: ChangePasswordSetting,
SettingKind.COMBO: ComboSetting,
- SettingKind.CHATSTATE_COMBO: ChatstateComboSetting,
}
if extend is not None:
@@ -575,15 +574,6 @@ class ComboSetting(GenericSetting):
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__ = {
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d8101ac4ca0f5517ddd5c6c149d6235c81f6af47
--
View it on GitLab:
https://dev.gajim.org/gajim/gajim/-/commit/d8101ac4ca0f5517ddd5c6c149d6235c81f6af47
You're receiving this email because of your account on dev.gajim.org.
_______________________________________________
Commits mailing list
[email protected]
https://lists.gajim.org/cgi-bin/listinfo/commits