From f0f9751a845f4fed325c47bc5a8e23cc6adeee67 Mon Sep 17 00:00:00 2001 From: wurstsalat Date: Tue, 2 Aug 2022 18:03:03 +0200 Subject: [PATCH] [triggers] 1.4.6 Fixes #602 --- triggers/gtk/config.py | 6 +++++- triggers/gtk/config.ui | 9 --------- triggers/plugin-manifest.json | 2 +- 3 files changed, 6 insertions(+), 11 deletions(-) diff --git a/triggers/gtk/config.py b/triggers/gtk/config.py index eafc702..3c2409f 100644 --- a/triggers/gtk/config.py +++ b/triggers/gtk/config.py @@ -150,7 +150,11 @@ class ConfigDialog(Gtk.ApplicationWindow): # event value = self._config[self._active_num]['event'] - if value: + legacy_values = [ + 'contact_connected', + 'contact_disconnected', + 'contact_status_change'] + if value and value not in legacy_values: self._ui.event_combobox.set_active( list(EVENTS.keys()).index(value)) else: diff --git a/triggers/gtk/config.ui b/triggers/gtk/config.ui index c9a1be8..8d1ed39 100644 --- a/triggers/gtk/config.ui +++ b/triggers/gtk/config.ui @@ -31,15 +31,6 @@ Receive a Message - - Contact Connects - - - Contact Disconnects - - - Contact Changes Status - diff --git a/triggers/plugin-manifest.json b/triggers/plugin-manifest.json index 7196609..120a700 100644 --- a/triggers/plugin-manifest.json +++ b/triggers/plugin-manifest.json @@ -15,5 +15,5 @@ "gajim>=1.4.0" ], "short_name": "triggers", - "version": "1.4.5" + "version": "1.4.6" } \ No newline at end of file