summaryrefslogtreecommitdiff
path: root/src/game/GameView.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/GameView.cpp')
-rw-r--r--src/game/GameView.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/game/GameView.cpp b/src/game/GameView.cpp
index 7ba1fe7..9a2f772 100644
--- a/src/game/GameView.cpp
+++ b/src/game/GameView.cpp
@@ -847,6 +847,18 @@ void GameView::NotifySaveChanged(GameModel * sender)
tagSimulationButton->SetText("[no tags set]");
}
}
+ else if (sender->GetFile())
+ {
+ ((SplitButton*)saveSimulationButton)->SetShowSplit(false);
+ saveSimulationButton->SetText(sender->GetFile()->GetDisplayName());
+ reloadButton->Enabled = true;
+ upVoteButton->Enabled = false;
+ upVoteButton->Appearance.BackgroundInactive = (ui::Colour(0, 0, 0));
+ downVoteButton->Enabled = false;
+ upVoteButton->Appearance.BackgroundInactive = (ui::Colour(0, 0, 0));
+ tagSimulationButton->Enabled = false;
+ tagSimulationButton->SetText("[no tags set]");
+ }
else
{
((SplitButton*)saveSimulationButton)->SetShowSplit(false);