Skip to content

Commit

Permalink
fix: small bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sivan22 committed Nov 30, 2024
1 parent 8e9e40b commit 422589b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/models/app_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -537,6 +538,7 @@ class AppModel with ChangeNotifier {
/// Reloads the library from disk
Future<void> refreshLibrary() async {
libraryPath = Settings.getValue<String>('key-library-path') ?? libraryPath;
FileSystemData.instance.libraryPath = libraryPath;
library = data.getLibrary();
notifyListeners();
}
Expand Down

0 comments on commit 422589b

Please sign in to comment.