mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 21:11:50 +00:00
disable traceback lines with non-existing files
This commit is contained in:
parent
5039bdfc63
commit
9ed80ec835
4 changed files with 13 additions and 7 deletions
|
|
@ -84,13 +84,11 @@ events.on("core:open_traceback", function(traceback_b64)
|
|||
framestr = framestr.."("..tostring(frame.name)..")"
|
||||
end
|
||||
local color = "#FFFFFF"
|
||||
if frame.source:starts_with("core:") then
|
||||
color = "#C0D0C5"
|
||||
end
|
||||
tb_list:add(gui.template("stack_frame", {
|
||||
location=framestr,
|
||||
color=color,
|
||||
callback=callback
|
||||
callback=callback,
|
||||
enabled=file.exists(frame.source)
|
||||
}))
|
||||
end
|
||||
tb_list.size = srcsize
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
<label hover-color="#A0A0FF" interactive="true" onclick="%{callback}" color="%{color}">
|
||||
<label hover-color="#A0A0FF" interactive="true" onclick="%{callback}" color="%{color}" enabled="%{enabled}">
|
||||
%{location}
|
||||
</label>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue