Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
anhappdev committed Nov 15, 2024
1 parent 56ab757 commit 94aef4f
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
4 changes: 3 additions & 1 deletion flutter/lib/resources/resource_manager.dart
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ class ResourceManager {
Future<void> handleResources(List<Resource> resources, bool purgeOldCache,
bool downloadMissing) async {
_loadingPath = '';
_loadingProgress = 0.0;
_loadingProgress = 0.001;
_done = false;
_onUpdate();

Expand Down Expand Up @@ -132,6 +132,8 @@ class ResourceManager {
// delete downloaded archives to free up disk space
await cacheManager.deleteArchives(internetPaths);

_loadingPath = '';
_loadingProgress = 1.0;
_done = true;
_onUpdate();
}
Expand Down
1 change: 0 additions & 1 deletion flutter/lib/ui/root/main_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import 'package:mlperfbench/benchmark/state.dart';
import 'package:mlperfbench/ui/home/benchmark_result_screen.dart';
import 'package:mlperfbench/ui/home/benchmark_running_screen.dart';
import 'package:mlperfbench/ui/home/benchmark_start_screen.dart';
import 'package:mlperfbench/ui/home/resource_loading_screen.dart';
import 'package:mlperfbench/ui/root/resource_error_screen.dart';

class MainScreen extends StatelessWidget {
Expand Down
1 change: 0 additions & 1 deletion flutter/lib/ui/settings/resources_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ class _ResourcesScreen extends State<ResourcesScreen> {
);
}

// TODO: add confirm dialog
Widget _clearCacheButton() {
return AbsorbPointer(
absorbing: downloading,
Expand Down
1 change: 0 additions & 1 deletion flutter/lib/ui/settings/settings_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ import 'package:mlperfbench/localizations/app_localizations.dart';
import 'package:mlperfbench/resources/config_manager.dart';
import 'package:mlperfbench/store.dart';
import 'package:mlperfbench/ui/app_styles.dart';
import 'package:mlperfbench/ui/confirm_dialog.dart';
import 'package:mlperfbench/ui/settings/task_config_section.dart';

class SettingsScreen extends StatefulWidget {
Expand Down

0 comments on commit 94aef4f

Please sign in to comment.