Skip to content

Update ui.lua #200

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

Closed
wants to merge 1 commit into from
Closed

Update ui.lua #200

wants to merge 1 commit into from

Conversation

hsuq510
Copy link

@hsuq510 hsuq510 commented Mar 17, 2019

In order to fix issue 199 where api version is not initialized correctly the pull request is tested.

#199

@@ -60,6 +60,7 @@ end

local function invalidatePages()
Page = nil
dataInitialised = false
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This shouldn't be invalidated - no point in re-reading data over and over again, especially as bandwidth is already scarce.

if data_init == nil then
data_init = assert(loadScript(SCRIPT_HOME .. "/data_init.lua"))()
end
dataInitialised = data_init.init();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you running this only once? If you want to run this here, it should be run until the initialisation has finished, otherwise this will just be done after an arbitrary number of user interactions.

@mikeller
Copy link
Member

@hsuq510: I think this has been addressed in #203.

@hsuq510
Copy link
Author

hsuq510 commented Apr 15, 2019

@mikeller still not working with latest ui.lua data is not initialized and apiversion remain 0. At leastr with X9D is not working.

@hsuq510 hsuq510 closed this Apr 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants