forked from firka/student-legacy
make variable private
This commit is contained in:
parent
0ad663beb3
commit
c615a33bd2
@ -40,7 +40,7 @@ class LiveCardProvider extends ChangeNotifier {
|
|||||||
String? _latestActivityId;
|
String? _latestActivityId;
|
||||||
Map<String, String> _lastActivity = {};
|
Map<String, String> _lastActivity = {};
|
||||||
|
|
||||||
bool hasCheckedTimetable = false;
|
bool _hasCheckedTimetable = false;
|
||||||
|
|
||||||
LiveCardProvider({
|
LiveCardProvider({
|
||||||
required TimetableProvider timetable,
|
required TimetableProvider timetable,
|
||||||
@ -200,8 +200,8 @@ class LiveCardProvider extends ChangeNotifier {
|
|||||||
|
|
||||||
List<Lesson> today = _today(_timetable);
|
List<Lesson> today = _today(_timetable);
|
||||||
|
|
||||||
if (today.isEmpty && !hasCheckedTimetable) {
|
if (today.isEmpty && !_hasCheckedTimetable) {
|
||||||
hasCheckedTimetable = true;
|
_hasCheckedTimetable = true;
|
||||||
await _timetable.fetch(week: Week.current());
|
await _timetable.fetch(week: Week.current());
|
||||||
today = _today(_timetable);
|
today = _today(_timetable);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user