added reset button and fix history
This commit is contained in:
@ -335,8 +335,6 @@ class DestinationController extends GetxController {
|
||||
is_gps_selected.value = true;
|
||||
skip_gps = false;
|
||||
|
||||
saveGameState();
|
||||
|
||||
_start = 0;
|
||||
chekcs = 0;
|
||||
rogaining_counted.value = false;
|
||||
@ -348,16 +346,21 @@ class DestinationController extends GetxController {
|
||||
print("===== last goal : $last_goal_at =====");
|
||||
}
|
||||
|
||||
//deleteDBDestinations();
|
||||
|
||||
// currentSelectedDestinations.forEach((element) {
|
||||
// deleteDestination(element);
|
||||
// });
|
||||
}
|
||||
|
||||
void deleteAllDestinations() {
|
||||
DatabaseHelper db = DatabaseHelper.instance;
|
||||
db.deleteAllDestinations().then((value) {
|
||||
PopulateDestinations();
|
||||
startGPSTimer();
|
||||
startGame();
|
||||
//initGPS();
|
||||
});
|
||||
|
||||
// currentSelectedDestinations.forEach((element) {
|
||||
// deleteDestination(element);
|
||||
// });
|
||||
}
|
||||
|
||||
void openCamera(BuildContext context) {
|
||||
@ -824,7 +827,7 @@ class DestinationController extends GetxController {
|
||||
});
|
||||
}
|
||||
|
||||
void deleteAllDestinations() {
|
||||
void deleteDBDestinations() {
|
||||
DatabaseHelper db = DatabaseHelper.instance;
|
||||
db.deleteAllDestinations().then((value) {
|
||||
PopulateDestinations();
|
||||
|
||||
Reference in New Issue
Block a user