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,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);