Skip to content

Commit b24587b

Browse files
committed
feat: Navigate to home while resetting the library
1 parent 6c4c28e commit b24587b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/screens/settings_library/settings_library.dart

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import 'dart:io';
33
import 'package:provider/provider.dart';
44
import 'package:fluent_ui/fluent_ui.dart';
55
import 'package:material_symbols_icons/symbols.dart';
6-
import 'package:rune/screens/settings_library/widgets/add_library_setting_button.dart';
76

87
import '../../utils/settings_page_padding.dart';
98
import '../../utils/settings_body_padding.dart';
@@ -12,6 +11,7 @@ import '../../utils/router/navigation.dart';
1211
import '../../widgets/library_task_button.dart';
1312
import '../../widgets/unavailable_page_on_band.dart';
1413
import '../../widgets/navigation_bar/page_content_frame.dart';
14+
import '../../screens/settings_library/widgets/add_library_setting_button.dart';
1515
import '../../providers/library_path.dart';
1616
import '../../providers/library_manager.dart';
1717

@@ -74,8 +74,8 @@ class _SettingsLibraryPageState extends State<SettingsLibraryPage> {
7474
subtitle: "Remove all items from the library list",
7575
onPressed: () async {
7676
await closeLibrary(context);
77-
7877
libraryPath.clearAllOpenedFiles();
78+
$$replace("/");
7979
},
8080
),
8181
const SizedBox(height: 2),

0 commit comments

Comments
 (0)