about summary refs log tree commit diff stats
path: root/src/paintings_pane.cpp
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2025-03-08 10:52:51 -0500
committerStar Rauchenberger <fefferburbia@gmail.com>2025-03-08 10:52:51 -0500
commitf8f55976533ac3b77bb8d31697ba2f1e54a994c1 (patch)
tree59b4cd49e64af291b2fd0b22711174bfd79149fa /src/paintings_pane.cpp
parent5fe5bec92e86a4a94cddefec51fabc22212b7364 (diff)
downloadlingo-ap-tracker-f8f55976533ac3b77bb8d31697ba2f1e54a994c1.tar.gz
lingo-ap-tracker-f8f55976533ac3b77bb8d31697ba2f1e54a994c1.tar.bz2
lingo-ap-tracker-f8f55976533ac3b77bb8d31697ba2f1e54a994c1.zip
Made indicator updates more fine-grained
Diffstat (limited to 'src/paintings_pane.cpp')
-rw-r--r--src/paintings_pane.cpp12
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
42void PaintingsPane::UpdateIndicators() { 42void PaintingsPane::ResetIndicators() {
43 tree_ctrl_->DeleteAllItems(); 43 tree_ctrl_->DeleteAllItems();
44 reveal_btn_->Enable(AP_IsPaintingShuffle());
45}
44 46
45 if (!AP_IsPaintingShuffle()) { 47void 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