fix(ui): Ignore checkboxes input on loading state

- Resolve: #165
This commit is contained in:
NaiJi 2024-09-08 21:49:07 +04:00 committed by Inex Code
parent d5a1fb05bd
commit 50bc9d8965

View file

@ -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 {