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