diff --git a/lib/src/pages/open_website.dart b/lib/src/pages/open_website.dart index 22eef75c..1c6e2f64 100644 --- a/lib/src/pages/open_website.dart +++ b/lib/src/pages/open_website.dart @@ -118,16 +118,12 @@ class _OpenWebsiteState extends State { ); return; } - setState(() => currentStep++); - } else { open(sitePath: sitePath); } }, onStepCancel: () { if (currentStep > 0) { - setState(() { - currentStep--; - }); + setState(() => currentStep--); } }, controlsBuilder: (context, details) { @@ -139,7 +135,7 @@ class _OpenWebsiteState extends State { children: [ ElevatedButton( onPressed: canContinue ? details.onStepContinue : null, - child: Text(details.stepIndex < 2 + child: Text(details.stepIndex == 0 ? Localization.appLocalizations().continue2 : Localization.appLocalizations().open.toUpperCase()), ), @@ -234,23 +230,6 @@ class _OpenWebsiteState extends State { ], ), ), - Step( - isActive: currentStep >= 2, - title: Text(Localization.appLocalizations().open), - content: Column( - children: [ - SelectableText.rich(TextSpan( - text: Localization.appLocalizations().openHugoSite, - style: const TextStyle(fontSize: 20), - children: [ - TextSpan( - text: '"$sitePath"', - style: const TextStyle(fontWeight: FontWeight.w500), - ), - ])), - ], - ), - ), ], ); }