summaryrefslogtreecommitdiff
path: root/src/game/GameView.cpp
diff options
context:
space:
mode:
authorjacob1 <jfu614@gmail.com>2012-10-19 19:06:07 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-10-26 14:15:24 (GMT)
commite2622657f076ef943d051593d0969306daf15f32 (patch)
tree1e5b811c3d50552b591c54e9918b22ef661bfdfa /src/game/GameView.cpp
parent63daf67d44c284068a6104221121f466d9790ad9 (diff)
downloadpowder-e2622657f076ef943d051593d0969306daf15f32.zip
powder-e2622657f076ef943d051593d0969306daf15f32.tar.gz
ability to reload and resave local saves without retyping name
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);