def _on_unmap(self, widget):
     """
         Enable global shortcuts
         @param widget as Gtk.Widget
     """
     View._on_unmap(self, widget)
     App().enable_special_shortcuts(True)
Beispiel #2
0
 def _on_unmap(self, widget):
     """
         Cancel current loading and enable shortcuts
         @param widget as Gtk.Widget
     """
     View._on_unmap(self, widget)
     App().enable_special_shortcuts(True)
     self.cancel()
     self.__banner.spinner.stop()
 def _on_unmap(self, widget):
     """
         Connect player signal
         @param widget as Gtk.Widget
     """
     self.__lyrics_helper.cancel()
     View._on_unmap(self, widget)
     if self.__lyrics_timeout_id is not None:
         GLib.source_remove(self.__lyrics_timeout_id)
         self.__lyrics_timeout_id = None