added disabled feature to buttons and reset on start
This commit is contained in:
@ -430,6 +430,10 @@ class DestinationController extends GetxController {
|
||||
rogainingCounted.value = false;
|
||||
|
||||
DatabaseHelper db = DatabaseHelper.instance;
|
||||
|
||||
await db.deleteAllDestinations();
|
||||
await db.deleteAllRogaining();
|
||||
|
||||
int? latgoal = await db.latestGoal();
|
||||
if (latgoal != null) {
|
||||
lastGoalAt = DateTime.fromMicrosecondsSinceEpoch(latgoal);
|
||||
@ -794,6 +798,8 @@ class DestinationController extends GetxController {
|
||||
orElse: () => null, // Provide a null value if no element is found
|
||||
);
|
||||
|
||||
//print("gfs : ${gfs}");
|
||||
|
||||
if (gfs == null) {
|
||||
return distanceToDest;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user