From 8a46bab4da663456d52963dfca2e67a91f2fc0c4 Mon Sep 17 00:00:00 2001 From: Martin Wagner Date: Sat, 13 Jun 2020 00:03:53 +0200 Subject: [PATCH] disabled opening of multiple lyrics overlays --- bin/mpdevil.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bin/mpdevil.py b/bin/mpdevil.py index c57c22f..b7cd929 100644 --- a/bin/mpdevil.py +++ b/bin/mpdevil.py @@ -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):