summaryrefslogtreecommitdiff
path: root/src/plugins/opensubtitles
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2019-07-12 17:49:27 +0200
committerBastien Nocera <hadess@hadess.net>2019-07-12 17:49:27 +0200
commitdf222892a5fc2bd83c13f9f0f6ace2d438e40c22 (patch)
tree343a1b71a526b149834a0e32c5156616141281b7 /src/plugins/opensubtitles
parente3aa3373aeaf4917a28e83531b397b006fd39eca (diff)
downloadtotem-df222892a5fc2bd83c13f9f0f6ace2d438e40c22.tar.gz
opensubtitles: Fix menu sensitivity on startup
Fix the menu being unsensitive if the plugin was enabled while a movie was opened.
Diffstat (limited to 'src/plugins/opensubtitles')
-rw-r--r--src/plugins/opensubtitles/opensubtitles.py4
1 files changed, 4 insertions, 0 deletions
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 ()