Disable error reporting if any dialogs are ignored.
This commit is contained in:
@@ -3,6 +3,10 @@
|
|||||||
-- If you include this file in your theme, you will not benefit from any improvements in error reporting.
|
-- If you include this file in your theme, you will not benefit from any improvements in error reporting.
|
||||||
-- If you want to adjust how long errors stay on screen for, call the "SetErrorMessageTime" function. (see usage notes in comments above that function)
|
-- If you want to adjust how long errors stay on screen for, call the "SetErrorMessageTime" function. (see usage notes in comments above that function)
|
||||||
|
|
||||||
|
if PREFSMAN:GetPreference("IgnoredDialogs") ~= "" then
|
||||||
|
return Def.Actor{}
|
||||||
|
end
|
||||||
|
|
||||||
local line_height= 12 -- A good line height for Common Normal at .5 zoom.
|
local line_height= 12 -- A good line height for Common Normal at .5 zoom.
|
||||||
|
|
||||||
local min_message_time= {show= 1, hide= .03125}
|
local min_message_time= {show= 1, hide= .03125}
|
||||||
|
|||||||
@@ -144,6 +144,10 @@ local log_display_mt= {
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
[name_mess]= function(subself, mess)
|
[name_mess]= function(subself, mess)
|
||||||
|
if PREFSMAN:GetPreference("IgnoredDialogs") ~= "" then
|
||||||
|
self:visible(false)
|
||||||
|
return
|
||||||
|
end
|
||||||
if not mess.message then return end
|
if not mess.message then return end
|
||||||
if self.messes_since_update > self.max_log then return end
|
if self.messes_since_update > self.max_log then return end
|
||||||
-- Long ago, someone decided that "::" should be an alias for "\n"
|
-- Long ago, someone decided that "::" should be an alias for "\n"
|
||||||
|
|||||||
Reference in New Issue
Block a user