Skip to content
Snippets Groups Projects
Commit 55fe0ea9 authored by Maximilian Betz's avatar Maximilian Betz
Browse files

cleanup

parent aff8e325
No related branches found
No related tags found
No related merge requests found
......@@ -83,7 +83,8 @@ class _MyHomePageState extends State<Configuration> {
await configuration.storeToSharedPrefs();
debugPrint('Configuration stored!');
_status = 'Login success & configuration stored';
setState(() {});
} on SocketException catch (e) {
debugPrint('Exception: $e');
......@@ -94,10 +95,6 @@ class _MyHomePageState extends State<Configuration> {
_status = '$e';
setState(() {});
}
_status = 'Success. Login valid, configuration stored';
setState(() {});
return;
}
Future<void> fetchInitData() async {
......@@ -278,6 +275,6 @@ class _MyHomePageState extends State<Configuration> {
}
//TODO: write configuration on app dispose!
//TODO: display mission internet connection properly.
//TODO: grey out update button if nothing has changed. ?
\ No newline at end of file
......@@ -23,11 +23,6 @@ class _ViewEvents extends State<ViewEvents> {
localEvents = await database.getEvents();
int pendingEventCnt = await database.getPendingEventCnt();
debugPrint("Database Events: ");
for (var event in localEvents){
debugPrint(event.toString());
}
_syncStatus = pendingEventCnt.toString() + ' event(s) pending';
setState(() {}); //Got events from database, so update UI
}
......@@ -67,7 +62,7 @@ class _ViewEvents extends State<ViewEvents> {
'put success, remaining events: ' + syncCounter.toString());
event.status = 'EXPORTED'; //Update event to export only once
database.updateEvent(event); //Update Event as exported in SQL Database
fetchEventsFromDb(); //update view list //TODO: this is bad for the sync performance! Consider working with localevent list for the UI!
fetchEventsFromDb(); //update view list //TODO: this is bad for the sync performance!
setState(() {});
} else {
throw Exception('Sync for ' + event.urn + 'failed');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment