Force the user selected model on reset (which can change by a save state)

This commit is contained in:
Lior Halphon 2021-10-17 02:06:13 +03:00
parent 40fc477b56
commit f1b8164613
1 changed files with 1 additions and 6 deletions

View File

@ -593,12 +593,7 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency)
current_model = (enum model)[sender tag];
}
if (!modelsChanging && [sender tag] == MODEL_NONE) {
GB_reset(&gb);
}
else {
GB_switch_model_and_reset(&gb, [self internalModel]);
}
GB_switch_model_and_reset(&gb, [self internalModel]);
if (old_width != GB_get_screen_width(&gb)) {
[self.view screenSizeChanged];