Logging cleanup
This commit is contained in:
@ -1,6 +1,4 @@
|
||||
|
||||
import 'dart:developer';
|
||||
|
||||
import 'package:marianum_mobile/api/apiResponse.dart';
|
||||
import 'package:marianum_mobile/api/marianumcloud/webdav/queries/listFiles/listFilesCache.dart';
|
||||
import 'package:marianum_mobile/api/marianumcloud/webdav/queries/listFiles/listFilesResponse.dart';
|
||||
@ -20,7 +18,6 @@ class FilesProps extends DataHolder {
|
||||
ListFilesResponse get listFilesResponse => _listFilesResponse!;
|
||||
|
||||
void runPath(List<String> path) {
|
||||
log(path.toString());
|
||||
folderPath = path;
|
||||
run();
|
||||
}
|
||||
@ -34,12 +31,10 @@ class FilesProps extends DataHolder {
|
||||
void run() {
|
||||
_listFilesResponse = null;
|
||||
notifyListeners();
|
||||
log("fetch data");
|
||||
ListFilesCache(
|
||||
path: folderPath.isEmpty ? "/" : folderPath.join("/"),
|
||||
onUpdate: (ListFilesResponse data) => {
|
||||
_listFilesResponse = data,
|
||||
log("got data"),
|
||||
notifyListeners(),
|
||||
}
|
||||
);
|
||||
|
Reference in New Issue
Block a user