From 1de5bfdc824eeac6ea99a8d4494b1c595b0824a7 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Fri, 11 Mar 2022 11:01:47 -0300 Subject: [PATCH] Fixed exit logs --- classes/class_instance.lua | 14 ++++++++++++++ core/parser.lua | 10 +++++----- 2 files changed, 19 insertions(+), 5 deletions(-) diff --git a/classes/class_instance.lua b/classes/class_instance.lua index a056a2829..19160672e 100644 --- a/classes/class_instance.lua +++ b/classes/class_instance.lua @@ -1775,6 +1775,20 @@ function _detalhes:ExportSkin() } elseif (self.StatusBarSaved) then + local leftName = self.StatusBarSaved.left + local centerName = self.StatusBarSaved.center + local rightName = self.StatusBarSaved.right + + local options = self.StatusBarSaved.options + + local leftOptions = createStatusbarOptions(options[leftName]) + local centerOptions = createStatusbarOptions(options[centerName]) + local rightOptions = createStatusbarOptions(options[rightName]) + + options[leftName] = leftOptions + options[centerName] = centerOptions + options[rightName] = rightOptions + exported.StatusBarSaved = DetailsFramework.table.copy({}, self.StatusBarSaved) end return exported diff --git a/core/parser.lua b/core/parser.lua index 8478cf804..995aab402 100755 --- a/core/parser.lua +++ b/core/parser.lua @@ -5666,22 +5666,22 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1 --> failed to load the framework. return end + + _detalhes_global.exit_log = {} + _detalhes_global.exit_errors = _detalhes_global.exit_errors or {} local saver_error = function (errortext) _detalhes_global = _detalhes_global or {} - _detalhes_global.exit_errors = _detalhes_global.exit_errors or {} tinsert (_detalhes_global.exit_errors, 1, currentStep .. "|" .. date() .. "|" .. _detalhes.userversion .. "|" .. errortext .. "|" .. debugstack()) tremove (_detalhes_global.exit_errors, 6) end - - _detalhes_global.exit_log = {} - + _detalhes.saver_error_func = saver_error _detalhes.logoff_saving_data = true --> close info window if (_detalhes.FechaJanelaInfo) then - tinsert (_detalhes_global.exit_log, "1 - Closing Breakdown Window.") + tinsert (_detalhes_global.exit_log, "1 - Closing Janela Info.") currentStep = "Fecha Janela Info" xpcall (_detalhes.FechaJanelaInfo, saver_error) end