diff options
author | Bastien Nocera <hadess@hadess.net> | 2019-07-12 17:49:27 +0200 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2019-07-12 17:49:27 +0200 |
commit | df222892a5fc2bd83c13f9f0f6ace2d438e40c22 (patch) | |
tree | 343a1b71a526b149834a0e32c5156616141281b7 /src/plugins/opensubtitles | |
parent | e3aa3373aeaf4917a28e83531b397b006fd39eca (diff) | |
download | totem-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.py | 4 |
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 () |