Commit 010800cb authored by twanvl's avatar twanvl

random seed settings stored at the right time

parent ab1f4ce0
...@@ -186,8 +186,12 @@ RandomPackPanel::~RandomPackPanel() { ...@@ -186,8 +186,12 @@ RandomPackPanel::~RandomPackPanel() {
storeSettings(); storeSettings();
} }
void RandomPackPanel::onChangeSet() { void RandomPackPanel::onBeforeChangeSet() {
if (set) {
storeSettings(); storeSettings();
}
}
void RandomPackPanel::onChangeSet() {
preview ->setSet(set); preview ->setSet(set);
card_list->setSet(set); card_list->setSet(set);
totals ->setGame(set->game); totals ->setGame(set->game);
......
...@@ -28,6 +28,7 @@ class RandomPackPanel : public SetWindowPanel { ...@@ -28,6 +28,7 @@ class RandomPackPanel : public SetWindowPanel {
// --------------------------------------------------- : UI // --------------------------------------------------- : UI
virtual void onBeforeChangeSet();
virtual void onChangeSet(); virtual void onChangeSet();
virtual void initUI (wxToolBar* tb, wxMenuBar* mb); virtual void initUI (wxToolBar* tb, wxMenuBar* mb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment