make variable private

This commit is contained in:
hihihaha 2023-06-19 22:34:53 +02:00
parent 0ad663beb3
commit c615a33bd2

View File

@ -40,7 +40,7 @@ class LiveCardProvider extends ChangeNotifier {
String? _latestActivityId;
Map<String, String> _lastActivity = {};
bool hasCheckedTimetable = false;
bool _hasCheckedTimetable = false;
LiveCardProvider({
required TimetableProvider timetable,
@ -200,8 +200,8 @@ class LiveCardProvider extends ChangeNotifier {
List<Lesson> today = _today(_timetable);
if (today.isEmpty && !hasCheckedTimetable) {
hasCheckedTimetable = true;
if (today.isEmpty && !_hasCheckedTimetable) {
_hasCheckedTimetable = true;
await _timetable.fetch(week: Week.current());
today = _today(_timetable);
}