Verified Commit 96ee4dc3 authored by Sumner Evans's avatar Sumner Evans 💬
Browse files

Fixed regression from previous commit

parent 4934c380
Pipeline #119768903 passed with stages
in 11 minutes and 44 seconds
......@@ -59,6 +59,7 @@ class PlayerControls(Gtk.ActionBar):
chromecasts: List[ChromecastPlayer] = []
cover_art_update_order_token = 0
play_queue_update_order_token = 0
devices_requested = False
def __init__(self):
Gtk.ActionBar.__init__(self)
......@@ -151,6 +152,9 @@ class PlayerControls(Gtk.ActionBar):
self.album_name.set_markup('')
self.artist_name.set_markup('')
if self.devices_requested:
self.update_device_list()
# Set the Play Queue button popup.
if hasattr(state, 'play_queue'):
play_queue_len = len(state.play_queue)
......@@ -359,6 +363,7 @@ class PlayerControls(Gtk.ActionBar):
chromecast_callback(self.chromecasts)
def on_device_click(self, button):
self.devices_requested = True
if self.device_popover.is_visible():
self.device_popover.popdown()
else:
......
Markdown is supported
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