Skip to content

Commit

Permalink
Fix settings bug properly this time.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lothrik committed Mar 29, 2024
1 parent a8abfe3 commit 81cf947
Showing 1 changed file with 16 additions and 20 deletions.
36 changes: 16 additions & 20 deletions src/Modules/Main.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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)

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 81cf947

Please sign in to comment.