fixed sensitivity of add_button

This commit is contained in:
Martin Wagner 2022-02-23 18:25:01 +01:00
parent da99808f10
commit f248a63d9a

View File

@ -2464,6 +2464,7 @@ class PlaylistsPopover(Gtk.Popover):
def _add(self, *args): def _add(self, *args):
if self._add_button.get_sensitive(): if self._add_button.get_sensitive():
self._playlists_view.add(self._entry.get_text()) self._playlists_view.add(self._entry.get_text())
self._add_button.set_sensitive(False)
def _on_entry_changed(self, *args): def _on_entry_changed(self, *args):
name=self._entry.get_text() name=self._entry.get_text()