Fix setup showing incorrectly if progress > all

This commit is contained in:
Ming Ming 2021-04-17 01:19:34 +08:00
parent 23d9d12be5
commit 26bd5a3285

View file

@ -8,7 +8,8 @@ import 'package:nc_photos/widget/home.dart';
import 'package:nc_photos/widget/sign_in.dart';
import 'package:page_view_indicators/circle_page_indicator.dart';
bool isNeedSetup() => Pref.inst().getSetupProgress() != _PageId.all;
bool isNeedSetup() =>
Pref.inst().getSetupProgress() & _PageId.all != _PageId.all;
class Setup extends StatefulWidget {
static const routeName = "/setup";