Skip to content
Snippets Groups Projects
Commit 2b31a3de authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Only create the main context once.

Fixes issue where returning to the main menu always takes you to
the top option.
parent 52feec23
No related branches found
No related tags found
No related merge requests found
...@@ -1065,8 +1065,8 @@ if (Config_Filename.match(/[.][Cc][Oo][Nn][Ff]$/)) { ...@@ -1065,8 +1065,8 @@ if (Config_Filename.match(/[.][Cc][Oo][Nn][Ff]$/)) {
Config_Filename = Config_Filename.replace(/[.][Cc][Oo][Nn][Ff]$/, ".ini"); Config_Filename = Config_Filename.replace(/[.][Cc][Oo][Nn][Ff]$/, ".ini");
} }
var ctx = new uifc.list.CTX;
while (!Main_Menu_Exit && !js.terminated) { while (!Main_Menu_Exit && !js.terminated) {
var ctx = new uifc.list.CTX;
var result = uifc.list( var result = uifc.list(
WIN_ORG | WIN_MID | WIN_ACT, WIN_ORG | WIN_MID | WIN_ACT,
"Main Menu", "Main Menu",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment