From 422589bb70785b8a740c5f55551f4da28d37866b Mon Sep 17 00:00:00 2001 From: Sivan Ratson <89018301+Sivan22@users.noreply.github.com> Date: Sun, 1 Dec 2024 00:29:02 +0200 Subject: [PATCH] fix: small bug --- lib/models/app_model.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/models/app_model.dart b/lib/models/app_model.dart index 9d91b6de..697f1dd5 100644 --- a/lib/models/app_model.dart +++ b/lib/models/app_model.dart @@ -16,6 +16,7 @@ import 'package:flutter/material.dart'; import 'package:flutter_settings_screens/flutter_settings_screens.dart'; import 'package:fuzzywuzzy/fuzzywuzzy.dart'; import 'package:hive/hive.dart'; +import 'package:otzaria/data/data_providers/file_system_data_provider.dart'; import 'package:otzaria/data/repository/data_repository.dart'; import 'package:otzaria/models/bookmark.dart'; import 'package:otzaria/models/books.dart'; @@ -537,6 +538,7 @@ class AppModel with ChangeNotifier { /// Reloads the library from disk Future refreshLibrary() async { libraryPath = Settings.getValue('key-library-path') ?? libraryPath; + FileSystemData.instance.libraryPath = libraryPath; library = data.getLibrary(); notifyListeners(); }