diff options
Diffstat (limited to 'src/paintings_pane.cpp')
| -rw-r--r-- | src/paintings_pane.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
| diff --git a/src/paintings_pane.cpp b/src/paintings_pane.cpp index dc6f050..51c4995 100644 --- a/src/paintings_pane.cpp +++ b/src/paintings_pane.cpp | |||
| @@ -39,15 +39,15 @@ PaintingsPane::PaintingsPane(wxWindow* parent) : wxPanel(parent, wxID_ANY) { | |||
| 39 | reveal_btn_->Bind(wxEVT_BUTTON, &PaintingsPane::OnClickRevealPaintings, this); | 39 | reveal_btn_->Bind(wxEVT_BUTTON, &PaintingsPane::OnClickRevealPaintings, this); |
| 40 | } | 40 | } |
| 41 | 41 | ||
| 42 | void PaintingsPane::UpdateIndicators() { | 42 | void PaintingsPane::ResetIndicators() { |
| 43 | tree_ctrl_->DeleteAllItems(); | 43 | tree_ctrl_->DeleteAllItems(); |
| 44 | reveal_btn_->Enable(AP_IsPaintingShuffle()); | ||
| 45 | } | ||
| 44 | 46 | ||
| 45 | if (!AP_IsPaintingShuffle()) { | 47 | void PaintingsPane::UpdateIndicators(const std::vector<std::string>&) { |
| 46 | reveal_btn_->Disable(); | 48 | // TODO: Optimize this by using the paintings delta. |
| 47 | return; | ||
| 48 | } | ||
| 49 | 49 | ||
| 50 | reveal_btn_->Enable(); | 50 | tree_ctrl_->DeleteAllItems(); |
| 51 | 51 | ||
| 52 | std::map<std::string, std::set<std::string>> grouped_paintings; | 52 | std::map<std::string, std::set<std::string>> grouped_paintings; |
| 53 | 53 | ||
