mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-23 09:16:54 +00:00
parent
d5a1fb05bd
commit
50bc9d8965
|
@ -28,9 +28,11 @@ class MetricsCubit extends Cubit<MetricsState> {
|
||||||
}
|
}
|
||||||
|
|
||||||
void changePeriod(final Period period) async {
|
void changePeriod(final Period period) async {
|
||||||
closeTimer();
|
if (state is! MetricsLoading) {
|
||||||
emit(MetricsLoading(period));
|
closeTimer();
|
||||||
load(period);
|
emit(MetricsLoading(period));
|
||||||
|
load(period);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void restart() async {
|
void restart() async {
|
||||||
|
|
Loading…
Reference in a new issue