From 3d50a1e143f0f1ef2994b3ba3b9a307a469f4861 Mon Sep 17 00:00:00 2001 From: Lukasz Stanislawski Date: Thu, 2 Apr 2020 13:35:47 +0200 Subject: [PATCH] Pagination hide fix The pagination should be hidden on last page. Refactor Next to change current only if Next exists --- Oobe/Oobe/Managers/ProcessManager.cs | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Oobe/Oobe/Managers/ProcessManager.cs b/Oobe/Oobe/Managers/ProcessManager.cs index e17021d..e12f283 100644 --- a/Oobe/Oobe/Managers/ProcessManager.cs +++ b/Oobe/Oobe/Managers/ProcessManager.cs @@ -88,15 +88,15 @@ namespace Oobe /// public void Next() { - // do not show pagination on last page - if (current.Next == null) + if (current.Next != null) { - ui.PaginationVisible = false; + current = current.Next; + ui.Push(current.Value.Value.CreateView(new NavigationController(this, current.Value.Value))); + current.Next?.Value.Value.Initialize(); + // do not show pagination on last page + if (current.Next == null) + ui.PaginationVisible = false; } - - current = current.Next; - ui.Push(current.Value.Value.CreateView(new NavigationController(this, current.Value.Value))); - current.Next?.Value.Value.Initialize(); } /// -- 2.7.4