From af955e9e575c324b6f2ccd25a89aded6f7665d91 Mon Sep 17 00:00:00 2001 From: cosven Date: Tue, 24 Oct 2023 00:58:34 +0800 Subject: [PATCH] refine code --- feeluown/gui/uimain/sidebar.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/feeluown/gui/uimain/sidebar.py b/feeluown/gui/uimain/sidebar.py index c8c157e8c3..c94c84e21d 100644 --- a/feeluown/gui/uimain/sidebar.py +++ b/feeluown/gui/uimain/sidebar.py @@ -4,8 +4,8 @@ from PyQt5.QtCore import QSize, Qt from PyQt5.QtWidgets import QFrame, QLabel, QVBoxLayout, QSizePolicy, QScrollArea, \ QHBoxLayout, QFormLayout, QDialog, QLineEdit, QDialogButtonBox, QMessageBox -from feeluown.excs import ProviderIOError, NoUserLoggedIn +from feeluown.excs import ProviderIOError, NoUserLoggedIn from feeluown.library import ( SupportsPlaylistDelete, SupportsPlaylistCreateByName, @@ -165,7 +165,7 @@ def __init__(self, app: 'GuiApp', parent=None): self.playlists_view.remove_playlist.connect(self._remove_playlist) self.collections_con.create_btn.clicked.connect( self.popup_collection_adding_dialog) - self.playlists_con.create_btn.clicked.connect(self.popup_playlist_adding_dialog) + self.playlists_con.create_btn.clicked.connect(self._create_playlist) def popup_collection_adding_dialog(self): dialog = QDialog(self) @@ -194,7 +194,7 @@ def create_collection_and_reload(): dialog.accepted.connect(create_collection_and_reload) dialog.open() - def popup_playlist_adding_dialog(self): + def _create_playlist(self): provider_ui = self._app.current_pvd_ui_mgr.get() if provider_ui is None: self._app.show_msg('当前的资源提供方未注册其 UI')