make adding to main playlist inactive if selected items are from there
This commit is contained in:
@@ -394,6 +394,12 @@ template <typename T> void NCurses::Menu<T>::Refresh()
|
|||||||
if (!(*itsOptionsPtr)[itsHighlight]) // if it's still on separator, move in other direction.
|
if (!(*itsOptionsPtr)[itsHighlight]) // if it's still on separator, move in other direction.
|
||||||
Scroll(wDown);
|
Scroll(wDown);
|
||||||
}
|
}
|
||||||
|
else if ((*itsOptionsPtr)[itsHighlight]->isStatic) // static option can't be chosen
|
||||||
|
{
|
||||||
|
Scroll(wUp);
|
||||||
|
if ((*itsOptionsPtr)[itsHighlight]->isStatic) // if it's still chosen, scroll in other direction
|
||||||
|
Scroll(wDown);
|
||||||
|
}
|
||||||
size_t line = 0;
|
size_t line = 0;
|
||||||
for (size_t i = itsBeginning; i < itsBeginning+itsHeight; ++i)
|
for (size_t i = itsBeginning; i < itsBeginning+itsHeight; ++i)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -80,7 +80,7 @@ void SelectedItemsAdder::SwitchTo()
|
|||||||
|
|
||||||
w->Clear();
|
w->Clear();
|
||||||
w->Reset();
|
w->Reset();
|
||||||
w->AddOption("Current MPD playlist");
|
w->AddOption("Current MPD playlist", 0, myOldScreen == myPlaylist);
|
||||||
w->AddOption("Create new playlist", 0, playlists_not_active);
|
w->AddOption("Create new playlist", 0, playlists_not_active);
|
||||||
w->AddSeparator();
|
w->AddSeparator();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user