This Trac instance is not used for development anymore!

We migrated our development workflow to git and Gitea.
To test the future redirection, replace trac by ariadne in the page URL.

Opened 4 months ago

#6929 new task

Don't destroy a gui page in a js-callback

Reported by: phosit Owned by:
Priority: Should Have Milestone: Alpha 27
Component: Core engine Keywords:
Cc: Patch:

Description

JS gui code can always remove a page. To (temporarly) not to destroy data while it's in use, the pages-stack is copied to a local variable. Also when the page removes itself from the stack it has to know about the GUIManager, while the dependency should be in the other direction.

One solution would be to only set a flag in the callback like Exit does it. Phab:D5271 Uses a promise which get's fulfilled when the page should be closed. (That's also kind of a flag) Removing SwitchGuiPage will be harder.

Change History (0)

Note: See TracTickets for help on using tickets.