-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi: Refactor MasterPage and PageStack #250
Multi: Refactor MasterPage and PageStack #250
Conversation
c14965d
to
5a5a90b
Compare
-- Refactor app.NewMasterPage to accept and handle a start page. -- Refactor *app.MasterPage.Display() -- Refactor app.PageStack.Push to only prepare the next page. -- Refactor pages that embed app.Masterpage. -- Fix some TODOs. Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
5a5a90b
to
fb95145
Compare
Signed-off-by: Philemon Ukane <ukanephilemon@gmail.com>
if pg.tab.SelectedIndex() == 1 { | ||
pg.Display(exchange.NewCreateOrderPage(pg.Load)) | ||
} | ||
pg.CurrentPage().HandleUserInteractions() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Forwarding User Interaction should happen after
a new page has been assigned if we hit the tab changed if branch. Same thing applies to other master pages.
@ukane-philemon i'm not fully sure what the scope of this PR aims to achieve or it's necessity |
Mainly this "Refactor app.NewMasterPage to accept and handle a start page.". This way we don't have to check |
I agree with @dreacot , I'm not sure about the purpose of this PR, your PR and the current PR are not much different.
This PR I see is just another approach but the problem is still not solved as you said |
Yes, most of the master pages don't need to check as they always have a start page. Only the Window's masterPage and dex masterPage check for a nill CurrentPage() and with #238, we can tell which page to display from the onset for the dex masterPage. |
moving to backlog |
I'll resubmit if this is needed in the future. |
Closes #249
-- Refactor app.NewMasterPage to accept and handle a start page.
-- Refactor *app.MasterPage.Display()
-- Refactor app.PageStack.Push to only prepare the next page.
-- Refactor pages that embed app.Masterpage.
-- Refactor app.PageStack.Pop()
-- Fix some TODOs.