Verified Commit 8cd6117a authored by Matt Blaha's avatar Matt Blaha
Browse files

Fix #2778 restore call to __on_artwork even when UI is hidden, remove __update_progress_visibility.

parent 5e0cbc68
Pipeline #291425 passed with stage
in 4 minutes and 4 seconds
......@@ -113,7 +113,6 @@ class MiniPlayer(Handy.WindowHandle, SizeAllocationHelper, SignalsHelper):
@param reveal as bool
"""
if reveal:
self.__update_progress_visibility()
self.__revealer.set_reveal_child(True)
emit_signal(self, "revealed", True)
self.__progress_widget.update()
......@@ -178,6 +177,7 @@ class MiniPlayer(Handy.WindowHandle, SizeAllocationHelper, SignalsHelper):
@param player as Player
"""
if player.current_track.id is None:
self.__on_artwork(None)
self.__previous_artwork_id = None
self.reveal(False)
self.hide()
......@@ -237,15 +237,6 @@ class MiniPlayer(Handy.WindowHandle, SizeAllocationHelper, SignalsHelper):
#######################
# PRIVATE #
#######################
def __update_progress_visibility(self):
"""
Update progress bar visibility
"""
if App().player.current_track.id is not None:
self.__progress_widget.show()
else:
self.__progress_widget.hide()
def __set_widgets_position(self):
"""
Add label widget to wanted UI part
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment