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,9 +28,11 @@ class MetricsCubit extends Cubit<MetricsState> {
|
|||
}
|
||||
|
||||
void changePeriod(final Period period) async {
|
||||
closeTimer();
|
||||
emit(MetricsLoading(period));
|
||||
load(period);
|
||||
if (state is! MetricsLoading) {
|
||||
closeTimer();
|
||||
emit(MetricsLoading(period));
|
||||
load(period);
|
||||
}
|
||||
}
|
||||
|
||||
void restart() async {
|
||||
|
|
Loading…
Reference in a new issue