Skip to content
  • 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;
                }
            }
        }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment