From e9ae5b228ba81aed4f158834bcf6de1759a8828a Mon Sep 17 00:00:00 2001 From: Abdulqadir Ahmad <2004a3abuahmad@gmail.com> Date: Sat, 25 Feb 2023 10:39:05 +0100 Subject: [PATCH] Fixed report an error button not working --- src/application.py | 2 +- src/controller/mainController.py | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/application.py b/src/application.py index f9227f4b..d6a828e2 100644 --- a/src/application.py +++ b/src/application.py @@ -9,6 +9,6 @@ copyright = "Copyright (C) 2013-2022, MCV Software." description = name+" is an app designed to use Twitter simply and efficiently while using minimal system resources. This app provides access to most Twitter features." translators = ["Manuel Cortéz (English)", "Mohammed Al Shara, Hatoun Felemban (Arabic)", "Francisco Torres (Catalan)", "Manuel cortéz (Spanish)", "Sukil Etxenike Arizaleta (Basque)", "Jani Kinnunen (finnish)", "Corentin Bacqué-Cazenave (Français)", "Juan Buño (Galician)", "Steffen Schultz (German)", "Zvonimir Stanečić (Croatian)", "Robert Osztolykan (Hungarian)", "Christian Leo Mameli (Italian)", "Riku (Japanese)", "Paweł Masarczyk (Polish)", "Odenilton Júnior Santos (Portuguese)", "Florian Ionașcu, Nicușor Untilă (Romanian)", "Natalia Hedlund, Valeria Kuznetsova (Russian)", "Aleksandar Đurić (Serbian)", "Burak Yüksek (Turkish)"] url = "https://twblue.es" -report_bugs_url = "https://github.com/mcvsoftware/twblue/issues" +report_bugs_url = "https://github.com/MCV-Software/TWBlue/issues" supported_languages = [] version = "11" diff --git a/src/controller/mainController.py b/src/controller/mainController.py index 843c9b4d..21ac5569 100644 --- a/src/controller/mainController.py +++ b/src/controller/mainController.py @@ -188,6 +188,7 @@ class Controller(object): widgetUtils.connect_event(self.view, widgetUtils.MENU, self.remove_from_list, self.view.removeFromList) widgetUtils.connect_event(self.view, widgetUtils.MENU, self.update_buffer, self.view.update_buffer) widgetUtils.connect_event(self.view, widgetUtils.MENU, self.manage_aliases, self.view.manageAliases) + widgetUtils.connect_event(self.view, widgetUtils.MENU, self.report_error, self.view.reportError) def set_systray_icon(self): self.systrayIcon = sysTrayIcon.SysTrayIcon() @@ -1265,4 +1266,9 @@ class Controller(object): # if number_of_items > 0: # sound_to_play = "dm_received.ogg" # if "direct_messages" not in buffer.session.settings["other_buffers"]["muted_buffers"]: -# self.notify(buffer.session, sound_to_play) \ No newline at end of file +# self.notify(buffer.session, sound_to_play) + + def report_error(self, *args, **kwargs): + """Redirects the user to the issue page on github""" + log.debug("Redirecting the user to report an error...") + webbrowser.open_new_tab(application.report_bugs_url)