actions: make JumpToPlayingSong work also if player is stopped
This commit is contained in:
@@ -1140,7 +1140,7 @@ void TogglePlayingSongCentering::run()
|
||||
Config.autocenter_mode ? "on" : "off"
|
||||
);
|
||||
if (Config.autocenter_mode
|
||||
&& Status::State::player() != MPD::psStop
|
||||
&& Status::State::player() != MPD::psUnknown
|
||||
&& !myPlaylist->main().isFiltered())
|
||||
myPlaylist->main().highlight(Status::State::currentSongPosition());
|
||||
}
|
||||
@@ -1162,7 +1162,7 @@ bool JumpToPlayingSong::canBeRun() const
|
||||
return ((myScreen == myPlaylist && !myPlaylist->isFiltered())
|
||||
|| myScreen == myBrowser
|
||||
|| myScreen == myLibrary)
|
||||
&& Status::State::player() != MPD::psStop;
|
||||
&& Status::State::player() != MPD::psUnknown;
|
||||
}
|
||||
|
||||
void JumpToPlayingSong::run()
|
||||
|
||||
@@ -290,7 +290,7 @@ void write_bindings(NC::Scrollpad &w)
|
||||
key(w, Type::SortPlaylist, "Sort playlist");
|
||||
key(w, Type::ReversePlaylist, "Reverse playlist");
|
||||
key(w, Type::FilterPlaylistOnPriorities, "Filter playlist on priorities");
|
||||
key(w, Type::JumpToPlayingSong, "Jump to playing song");
|
||||
key(w, Type::JumpToPlayingSong, "Jump to current song");
|
||||
key(w, Type::TogglePlayingSongCentering, "Toggle playing song centering");
|
||||
|
||||
key_section(w, "Browser");
|
||||
|
||||
Reference in New Issue
Block a user