mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
ensure we maintain category selection in browse view while indexing.
This commit is contained in:
parent
28390f0819
commit
ab58993c0f
@ -157,11 +157,13 @@ void BrowseLayout::InitializeWindows() {
|
|||||||
|
|
||||||
void BrowseLayout::ProcessMessage(musik::core::runtime::IMessage &message) {
|
void BrowseLayout::ProcessMessage(musik::core::runtime::IMessage &message) {
|
||||||
if (message.Type() == message::IndexerProgress) {
|
if (message.Type() == message::IndexerProgress) {
|
||||||
this->categoryList->Requery();
|
int64_t id = this->categoryList->GetSelectedId();
|
||||||
|
auto filter = this->categoryList->GetFilter();
|
||||||
|
this->categoryList->Requery(filter, id);
|
||||||
}
|
}
|
||||||
else if (message.Type() == message::TracksAddedToPlaylist) {
|
else if (message.Type() == message::TracksAddedToPlaylist) {
|
||||||
if (this->IsPlaylist() &&
|
if (this->IsPlaylist() &&
|
||||||
this->categoryList->GetSelectedId() == message.UserData1())
|
this->categoryList->GetSelectedId() == message.UserData1())
|
||||||
{
|
{
|
||||||
this->RequeryTrackList(this->categoryList.get());
|
this->RequeryTrackList(this->categoryList.get());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user