Trying to use 'private' methods
This commit is contained in:
@@ -29,7 +29,6 @@ v0.9.1
|
||||
keyring notification popup.
|
||||
* The ``NM`` library is used instead of the deprecated ``NetworkManager`` and
|
||||
``NMClient``. (Contributed by @anarcat.)
|
||||
* Sublime Music will crash less often due to missing dependencies.
|
||||
* Fixed some bugs where the state of the application wouldn't update when you
|
||||
deleted/downloaded songs from certain parts of the application.
|
||||
|
||||
|
@@ -169,7 +169,7 @@ class AdapterManager:
|
||||
)
|
||||
|
||||
@staticmethod
|
||||
def can_do(action_name: str):
|
||||
def _can_do(action_name: str):
|
||||
# It only matters that the ground truth one can service the request.
|
||||
return (
|
||||
AdapterManager._instance is not None
|
||||
@@ -181,7 +181,7 @@ class AdapterManager:
|
||||
|
||||
@staticmethod
|
||||
def can_get_playlists() -> bool:
|
||||
return AdapterManager.can_do("get_playlists")
|
||||
return AdapterManager._can_do("get_playlists")
|
||||
|
||||
@staticmethod
|
||||
def get_playlists(
|
||||
@@ -232,7 +232,7 @@ class AdapterManager:
|
||||
|
||||
@staticmethod
|
||||
def can_get_playlist_details() -> bool:
|
||||
return AdapterManager.can_do("get_playlist_details")
|
||||
return AdapterManager._can_do("get_playlist_details")
|
||||
|
||||
@staticmethod
|
||||
def get_playlist_details(
|
||||
|
@@ -73,6 +73,7 @@ class SortedManyToManyQuery(ManyToManyQuery):
|
||||
]
|
||||
accessor.through_model.insert_many(inserts).execute()
|
||||
|
||||
# TODO probably don't need
|
||||
# def remove(self, value: Any) -> Any:
|
||||
# # src_id = getattr(self._instance, self._src_attr)
|
||||
# # if isinstance(value, SelectQuery):
|
||||
|
Reference in New Issue
Block a user