-
Na řádku 66-69 je chyba
view.DoShow(args); Instance._currentView = view;
má být v ifu, takhle to zobrazí všechnny views
Pro úplnost uvádím opravenou celou fci:
public static void Show<T>(object args = null, bool remember = true) where T : AView { foreach (var view in Instance.views) { if (view is T tView) // The view type matches { if (Instance._currentView != null) { Instance._history.Push(Instance._currentView); Instance._currentView.DoHide(); } view.DoShow(args); Instance._currentView = view; } } }
Please register or sign in to comment