mirror of
https://git.selfprivacy.org/kherel/selfprivacy.org.app.git
synced 2025-01-11 18:39:45 +00:00
Fix broken installation state check
This commit is contained in:
parent
254604d584
commit
d247f41da4
|
@ -32,18 +32,21 @@ class InitializingPage extends StatelessWidget {
|
|||
if (cubit.state is ServerInstallationRecovery) {
|
||||
return const RecoveryRouting();
|
||||
} else {
|
||||
final actualInitializingPage = [
|
||||
() => _stepHetzner(cubit),
|
||||
() => _stepCloudflare(cubit),
|
||||
() => _stepBackblaze(cubit),
|
||||
() => _stepDomain(cubit),
|
||||
() => _stepUser(cubit),
|
||||
() => _stepServer(cubit),
|
||||
() => _stepCheck(cubit),
|
||||
() => _stepCheck(cubit),
|
||||
() => _stepCheck(cubit),
|
||||
() => _stepCheck(cubit)
|
||||
][cubit.state.progress.index]();
|
||||
Widget? actualInitializingPage;
|
||||
if (cubit.state is! ServerInstallationFinished) {
|
||||
actualInitializingPage = [
|
||||
() => _stepHetzner(cubit),
|
||||
() => _stepCloudflare(cubit),
|
||||
() => _stepBackblaze(cubit),
|
||||
() => _stepDomain(cubit),
|
||||
() => _stepUser(cubit),
|
||||
() => _stepServer(cubit),
|
||||
() => _stepCheck(cubit),
|
||||
() => _stepCheck(cubit),
|
||||
() => _stepCheck(cubit),
|
||||
() => _stepCheck(cubit)
|
||||
][cubit.state.progress.index]();
|
||||
}
|
||||
|
||||
return BlocListener<ServerInstallationCubit, ServerInstallationState>(
|
||||
listener: (final context, final state) {
|
||||
|
|
Loading…
Reference in a new issue