Skip to content

Commit

Permalink
fixed bug: mobile artist link label not working properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Nokse22 committed May 14, 2024
1 parent bcbf75a commit 7840e82
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
1 change: 1 addition & 0 deletions src/lib/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ def get_type(item):
return "artist"
elif isinstance(item, Playlist):
return "playlist"

def open_uri(label, uri, turn=True):
print(uri)
th= threading.Thread(target=_load_object, args=(uri,))
Expand Down
11 changes: 2 additions & 9 deletions src/window.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,6 @@ def on_queue_widget_shown(self, *args):
self.queue_widget.update(self.player_object)
self.queue_widget_updated = True

def toggle_mobile_view(self, *args):
name = self.main_view_stack.get_visible_child_name()
if name == "normal_view":
self.main_view_stack.set_visible_child_name("mobile_view")
elif name == "mobile_view":
self.main_view_stack.set_visible_child_name("normal_view")

return True

def on_search_activated(self, *args):
page = searchPage(None, "Search")
page.load()
Expand Down Expand Up @@ -543,3 +534,5 @@ def toggle_mobile_view(self, *args):
self.main_view_stack.set_visible_child_name("mobile_view")
else:
self.main_view_stack.set_visible_child_name("normal_view")

return True

0 comments on commit 7840e82

Please sign in to comment.