mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 11:10:52 +00:00
Fixed focus order issue in DirectoryLayout when hiding/showing directory
list.
This commit is contained in:
parent
1f88974620
commit
d8d2fc7da0
@ -83,13 +83,10 @@ void DirectoryLayout::OnLayout() {
|
||||
this->directoryList->Show();
|
||||
this->directoryList->MoveAndResize(x, y, directoryWidth, cy);
|
||||
this->trackList->MoveAndResize(x + directoryWidth, y, cx - directoryWidth, cy);
|
||||
this->directoryList->SetFocusOrder(0);
|
||||
this->trackList->SetFocusOrder(1);
|
||||
}
|
||||
else {
|
||||
this->directoryList->Hide();
|
||||
this->trackList->MoveAndResize(x, y, cx, cy);
|
||||
this->trackList->SetFocusOrder(0);
|
||||
}
|
||||
}
|
||||
|
||||
@ -110,9 +107,11 @@ void DirectoryLayout::InitializeWindows() {
|
||||
this->directoryList.reset(new ListWindow());
|
||||
this->directoryList->SetFrameTitle(_TSTR("browse_title_directory"));
|
||||
this->directoryList->SetAdapter(this->adapter);
|
||||
this->directoryList->SetFocusOrder(0);
|
||||
|
||||
this->trackList.reset(new TrackListView(this->playback, this->library));
|
||||
this->trackList->SetFrameTitle(_TSTR("browse_title_tracks"));
|
||||
this->trackList->SetFocusOrder(1);
|
||||
|
||||
this->AddWindow(this->directoryList);
|
||||
this->AddWindow(this->trackList);
|
||||
|
Loading…
Reference in New Issue
Block a user