mirror of
https://github.com/SoongNoonien/mpdevil.git
synced 2023-08-10 21:12:44 +03:00
simplified CoverEventBox
This commit is contained in:
parent
3bd3d8d687
commit
69e9e33273
@ -2525,12 +2525,10 @@ class CoverEventBox(Gtk.EventBox):
|
|||||||
self._click_pos=(event.x, event.y)
|
self._click_pos=(event.x, event.y)
|
||||||
|
|
||||||
def _on_button_release_event(self, widget, event):
|
def _on_button_release_event(self, widget, event):
|
||||||
if event.button != 1 or self._click_pos:
|
if event.button == 1 and not self._settings.get_boolean("mini-player") and self._client.connected():
|
||||||
if not self._settings.get_boolean("mini-player") and self._client.connected():
|
if (song:=self._client.currentsong()):
|
||||||
if (song:=self._client.currentsong()):
|
tags=(song["albumartist"][0], song["album"][0], song["date"][0])
|
||||||
tags=(song["albumartist"][0], song["album"][0], song["date"][0])
|
self._client.album_to_playlist(*tags, "enqueue")
|
||||||
if event.button == 1:
|
|
||||||
self._client.album_to_playlist(*tags, "enqueue")
|
|
||||||
self._click_pos=()
|
self._click_pos=()
|
||||||
|
|
||||||
def _on_motion_notify_event(self, widget, event):
|
def _on_motion_notify_event(self, widget, event):
|
||||||
|
Loading…
Reference in New Issue
Block a user