fix locating now playing song in browser (using 'o')
due to change of keybinding for switching to local browser, the trigger is invoked in SwitchTo() if main screen is already pointing to browser. since we use 'o' in browser to locate now playing song, this function was switching browser to wrong mode and thus requested song couldn't be found.
This commit is contained in:
@@ -298,7 +298,8 @@ void Browser::LocateSong(const MPD::Song &s)
|
||||
|
||||
itsBrowseLocally = !s.isFromDB();
|
||||
|
||||
SwitchTo();
|
||||
if (myScreen != this)
|
||||
SwitchTo();
|
||||
|
||||
std::string option = s.toString(Config.song_status_format);
|
||||
locale_to_utf(option);
|
||||
|
||||
Reference in New Issue
Block a user