Skip to content

Commit

Permalink
Update for patch 10.1.5 and 3.4.2
Browse files Browse the repository at this point in the history
Fixed error when Sushi-3.1 library is enabled
  • Loading branch information
Ketho committed Jul 24, 2023
1 parent fe5e26e commit bbded25
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
26 changes: 25 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,30 @@
"SlashCmdList",
"SPEED",
"WOW_PROJECT_ID",
"WOW_PROJECT_MAINLINE"
"WOW_PROJECT_MAINLINE",
"CreateFrame",
"hooksecurefunc",
"format",
"C_Timer",
"GetAddOnMetadata",
"GetCameraZoom",
"SetCVar",
"GetCurrentKeyBoardFocus",
"min",
"GetCVar",
"GetLocale",
"GameTooltip",
"_G",
"C_AddOns",
"pairs",
"tonumber",
"InterfaceOptions_AddCategory",
"InterfaceOptionsFrame_OpenToCategory",
"SettingsPanel",
"GameFontNormalLarge",
"GameFontHighlightSmall"
],
"Lua.diagnostics.disable": [
"need-check-nil"
],
}
3 changes: 2 additions & 1 deletion MaxCam.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ local ACD = LibStub("AceConfigDialog-3.0")
local db

local isRetail = (WOW_PROJECT_ID == WOW_PROJECT_MAINLINE)
local GetAddOnMetadata = GetAddOnMetadata or C_AddOns.GetAddOnMetadata

local BASE = 15
local MAX_RETAIL = 39
Expand Down Expand Up @@ -142,7 +143,7 @@ local PanelTicker

local function UpdateDistancePanel() -- InterfaceOptionsFrame distance
local panel = InterfaceOptionsFramePanelContainer.displayedPanel
if panel.name == NAME and not PanelTicker then
if panel and panel.name == NAME and not PanelTicker then
PanelTicker = C_Timer.NewTicker(.3, function(self)
if panel:IsVisible() and panel.name == NAME then
if not panel:IsMouseOver() and not GetCurrentKeyBoardFocus() then
Expand Down
4 changes: 2 additions & 2 deletions MaxCam.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 100002
## Interface-Wrath: 30400
## Interface: 100105
## Interface-Wrath: 30402
## Interface-Classic: 11403
## Version: @project-version@
## Title: MaxCam
Expand Down

0 comments on commit bbded25

Please sign in to comment.