change keybinding for changing browse mode
I shouldn't do that, but the old one will be much better for choosing whether songs in browser have to be sorted by names or modification date. Besides, binding this to browser key makes browser behaviour more "compatible" with media library.
This commit is contained in:
@@ -72,7 +72,12 @@ void Browser::Resize()
|
||||
void Browser::SwitchTo()
|
||||
{
|
||||
if (myScreen == this)
|
||||
{
|
||||
# ifndef WIN32
|
||||
myBrowser->ChangeBrowseMode();
|
||||
# endif // !WIN32
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isInitialized)
|
||||
Init();
|
||||
|
||||
@@ -229,7 +229,7 @@ void Help::GetKeybindings()
|
||||
*w << DisplayKeys(Key.EditTags) << "Rename playlist/directory\n";
|
||||
# endif // HAVE_TAGLIB_H
|
||||
if (Mpd.GetHostname()[0] == '/') // are we connected to unix socket?
|
||||
*w << DisplayKeys(Key.SwitchTagTypeList)<< "Browse MPD database/local filesystem\n";
|
||||
*w << DisplayKeys(Key.Browser) << "Browse MPD database/local filesystem\n";
|
||||
*w << DisplayKeys(Key.GoToNowPlaying) << "Locate currently playing song\n";
|
||||
*w << DisplayKeys(Key.GoToParentDir) << "Go to parent directory\n";
|
||||
*w << DisplayKeys(Key.Delete) << "Delete playlist/file/directory\n";
|
||||
|
||||
@@ -1808,12 +1808,6 @@ int main(int argc, char *argv[])
|
||||
if (number && Mpd.AddRandomSongs(number))
|
||||
ShowMessage("%zu random song%s added to playlist!", number, number == 1 ? "" : "s");
|
||||
}
|
||||
# ifndef WIN32
|
||||
else if (myScreen == myBrowser)
|
||||
{
|
||||
myBrowser->ChangeBrowseMode();
|
||||
}
|
||||
# endif // !WIN32
|
||||
else if (myScreen->ActiveWindow() == myLibrary->Artists
|
||||
|| (myLibrary->Columns() == 2 && myScreen->ActiveWindow() == myLibrary->Albums))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user