[totem/wip/hadess/update-plugin-names: 2/2] opensubtitles: Fix menu sensitivity on startup
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [totem/wip/hadess/update-plugin-names: 2/2] opensubtitles: Fix menu sensitivity on startup
- Date: Fri, 12 Jul 2019 15:51:50 +0000 (UTC)
commit df222892a5fc2bd83c13f9f0f6ace2d438e40c22
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jul 12 17:49:27 2019 +0200
opensubtitles: Fix menu sensitivity on startup
Fix the menu being unsensitive if the plugin was enabled while a movie
was opened.
src/plugins/opensubtitles/opensubtitles.py | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/src/plugins/opensubtitles/opensubtitles.py b/src/plugins/opensubtitles/opensubtitles.py
index 7396d80a6..8f4be065f 100644
--- a/src/plugins/opensubtitles/opensubtitles.py
+++ b/src/plugins/opensubtitles/opensubtitles.py
@@ -429,6 +429,10 @@ class OpenSubtitles (GObject.Object, # pylint: disable=R0902
server = xmlrpc.client.Server ('http://api.opensubtitles.org/xml-rpc')
self._model = OpenSubtitlesModel (server)
+ mrl = self._totem.get_current_mrl ()
+ if mrl:
+ self.__on_totem__file_opened(self._totem, self._totem.get_current_mrl ())
+
def do_deactivate (self):
if self._dialog:
self._dialog.destroy ()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]