Skip to content

Commit

Permalink
silent exit if lib not present
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Sep 7, 2024
1 parent b7a38aa commit c72ebe7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
local addonName, Details222 = ...
local version, build, date, tvs = GetBuildInfo()

Details.build_counter = 13000
Details.alpha_build_counter = 13000 --if this is higher than the regular counter, use it instead
Details.build_counter = 13001
Details.alpha_build_counter = 13001 --if this is higher than the regular counter, use it instead
Details.dont_open_news = true
Details.game_version = version
Details.userversion = version .. " " .. Details.build_counter
Expand Down
6 changes: 3 additions & 3 deletions functions/slash.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1948,7 +1948,7 @@ if (WOW_PROJECT_ID == WOW_PROJECT_MAINLINE) then
end
end

local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0")
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0", true)
if (openRaidLib) then
if (not DetailsKeystoneInfoFrame) then
---@type detailsframework
Expand Down Expand Up @@ -2949,7 +2949,7 @@ function noteEditor.ParseNoteText(text, bNoColoring)
end

noteEditor.OpenNoteEditor = function()
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0")
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0", true)
if (openRaidLib) then
if (not DetailsNoteFrame) then
local CONST_WINDOW_WIDTH = 614
Expand Down Expand Up @@ -3811,7 +3811,7 @@ function Details222.Notes.RegisterForOpenRaidNotes()
config["showresizebutton"] = true
end

local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0")
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0", true)
if (openRaidLib) then
--registering the callback:
local object = {
Expand Down

0 comments on commit c72ebe7

Please sign in to comment.