Skip to content

Commit

Permalink
add hint
Browse files Browse the repository at this point in the history
  • Loading branch information
cosven committed Oct 23, 2023
1 parent 9faf6bf commit d292bac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions feeluown/gui/uimain/sidebar.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,11 +197,13 @@ def create_collection_and_reload():
def popup_playlist_adding_dialog(self):
provider_ui = self._app.current_pvd_ui_mgr.get()
if provider_ui is None:
self._app.show_msg('当前的资源提供方未注册其 UI')
return
provider = provider_ui.provider
if not isinstance(provider, SupportsPlaylistCreateByName) \
or not isinstance(provider, SupportsCurrentUser) \
or not provider.has_current_user():
self._app.show_msg('当前的资源提供方不支持创建歌单')
return

dialog = QDialog(self)
Expand Down

0 comments on commit d292bac

Please sign in to comment.