disabled opening of multiple lyrics overlays

This commit is contained in:
Martin Wagner 2020-06-13 00:03:53 +02:00
parent d198c3a9f1
commit 8a46bab4da

View File

@ -1867,7 +1867,11 @@ class CoverLyricsOSD(Gtk.Overlay):
pass
def on_lyrics_clicked(self, widget):
self.lyrics_button.set_sensitive(False)
self.lyrics_win=LyricsWindow(self.client, self.settings)
def on_destroy(*args):
self.lyrics_button.set_sensitive(True)
self.lyrics_win.connect("destroy", on_destroy)
self.add_overlay(self.lyrics_win)
class Browser(Gtk.Box):