playlist editor: rename private members
This commit is contained in:
@@ -125,9 +125,9 @@ void PlaylistEditor::switchTo()
|
|||||||
|
|
||||||
void PlaylistEditor::update()
|
void PlaylistEditor::update()
|
||||||
{
|
{
|
||||||
if (Playlists.reallyEmpty() || playlistsUpdateRequested)
|
if (Playlists.reallyEmpty() || m_playlists_update_requested)
|
||||||
{
|
{
|
||||||
playlistsUpdateRequested = false;
|
m_playlists_update_requested = false;
|
||||||
Playlists.clearSearchResults();
|
Playlists.clearSearchResults();
|
||||||
withUnfilteredMenuReapplyFilter(Playlists, [this]() {
|
withUnfilteredMenuReapplyFilter(Playlists, [this]() {
|
||||||
size_t idx = 0;
|
size_t idx = 0;
|
||||||
@@ -146,9 +146,9 @@ void PlaylistEditor::update()
|
|||||||
Playlists.refresh();
|
Playlists.refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Playlists.empty() && (Content.reallyEmpty() || contentUpdateRequested))
|
if (!Playlists.empty() && (Content.reallyEmpty() || m_content_update_requested))
|
||||||
{
|
{
|
||||||
contentUpdateRequested = false;
|
m_content_update_requested = false;
|
||||||
Content.clearSearchResults();
|
Content.clearSearchResults();
|
||||||
withUnfilteredMenuReapplyFilter(Content, [this]() {
|
withUnfilteredMenuReapplyFilter(Content, [this]() {
|
||||||
size_t idx = 0;
|
size_t idx = 0;
|
||||||
|
|||||||
@@ -69,8 +69,8 @@ struct PlaylistEditor: Screen<NC::Window *>, Filterable, HasColumns, HasSongs, S
|
|||||||
virtual void nextColumn() OVERRIDE;
|
virtual void nextColumn() OVERRIDE;
|
||||||
|
|
||||||
// private members
|
// private members
|
||||||
void requestPlaylistsUpdate() { playlistsUpdateRequested = true; }
|
void requestPlaylistsUpdate() { m_playlists_update_requested = true; }
|
||||||
void requestContentsUpdate() { contentUpdateRequested = true; }
|
void requestContentsUpdate() { m_content_update_requested = true; }
|
||||||
|
|
||||||
virtual void Locate(const std::string &);
|
virtual void Locate(const std::string &);
|
||||||
bool isContentFiltered();
|
bool isContentFiltered();
|
||||||
@@ -85,8 +85,8 @@ protected:
|
|||||||
private:
|
private:
|
||||||
void AddToPlaylist(bool);
|
void AddToPlaylist(bool);
|
||||||
|
|
||||||
bool playlistsUpdateRequested;
|
bool m_playlists_update_requested;
|
||||||
bool contentUpdateRequested;
|
bool m_content_update_requested;
|
||||||
};
|
};
|
||||||
|
|
||||||
extern PlaylistEditor *myPlaylistEditor;
|
extern PlaylistEditor *myPlaylistEditor;
|
||||||
|
|||||||
Reference in New Issue
Block a user