From 81cf947c538a2131499b70ad6ff356f9c46e35c1 Mon Sep 17 00:00:00 2001 From: Lothrik Date: Thu, 28 Mar 2024 20:05:51 -0700 Subject: [PATCH] Fix settings bug properly this time. --- src/Modules/Main.lua | 36 ++++++++++++++++-------------------- 1 file changed, 16 insertions(+), 20 deletions(-) diff --git a/src/Modules/Main.lua b/src/Modules/Main.lua index 5b0a7b108ed..d2345e9dc24 100644 --- a/src/Modules/Main.lua +++ b/src/Modules/Main.lua @@ -85,10 +85,24 @@ function main:Init() self.userPath = self.userPath.."/Path of Building/" end end + + self.buildSortMode = "NAME" + self.connectionProtocol = 0 + self.nodePowerTheme = "RED/BLUE" + self.colorPositive = defaultColorCodes.POSITIVE + self.colorNegative = defaultColorCodes.NEGATIVE + self.colorHighlight = defaultColorCodes.HIGHLIGHT + self.showThousandsSeparators = true + self.thousandsSeparator = "," + self.decimalSeparator = "." + self.defaultItemAffixQuality = 0.69 + self.showTitlebarName = true + self.showWarnings = true + self.slotOnlyTooltips = true + self.POESESSID = "" + if self.userPath then self:ChangeUserPath(self.userPath, ignoreBuild) - else - self:LoadSettings(ignoreBuild) end if launch.devMode and IsKeyDown("CTRL") then @@ -104,25 +118,9 @@ function main:Init() self.allowTreeDownload = true end - self.inputEvents = { } self.tooltipLines = { } - self.buildSortMode = "NAME" - self.connectionProtocol = 0 - self.nodePowerTheme = "RED/BLUE" - self.colorPositive = defaultColorCodes.POSITIVE - self.colorNegative = defaultColorCodes.NEGATIVE - self.colorHighlight = defaultColorCodes.HIGHLIGHT - self.showThousandsSeparators = true - self.thousandsSeparator = "," - self.decimalSeparator = "." - self.defaultItemAffixQuality = 0.5 - self.showTitlebarName = true - self.showWarnings = true - self.slotOnlyTooltips = true - self.POESESSID = "" - self.tree = { } self:LoadTree(latestTreeVersion) @@ -771,8 +769,6 @@ function main:OpenOptionsPopup() local currentY = 20 local popupWidth = 600 - self:LoadSettings(true) - -- local func to make a new line with a heightModifier local function nextRow(heightModifier) local pxPerLine = 26