I digged out the source:
applying
-- priority: -1
event.listen {
name = 'hooks:renderTopWidgets',
run = function(e)
if not editor.getUiOption("darkMode") then
editor.setUiOption("darkMode", true)
end
end
}
and Client: Wipe + Reindex will cause this problem.
while replaced by
-- priority: -1
event.listen {
name = "hooks:renderTopWidgets",
run = function(e)
if not clientStore.get("darkMode") then
clientStore.set("darkMode", true)
editor.reloadUI()
end
end
}
there’ll be no problem then.
Seemingly unrelated huh?.. but it just happened…
the whole story origins from that I don’t what the flash caused by editor.reloadUI()… then I came up with the editor.setUiOption("darkMode", true), then here comes the problem…