Skip to content

Commit

Permalink
Added quick check to stop initialization notification from appearing …
Browse files Browse the repository at this point in the history
…more than once
  • Loading branch information
tirem committed Mar 11, 2023
1 parent 8a84235 commit 95ea87b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion XivParty/xivparty.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ local view = nil

local setupModel = nil
local isSetupEnabled = { false };
local announcedLogin = false;

math.randomseed(os.time())

Expand Down Expand Up @@ -86,9 +87,12 @@ end

local function init()
if not isInitialized then
print(chat.header(addon.name)..'-Initializing- Type /xp or /xivparty to open config')
view = uiView.new(model) -- depends on settings, always create view after loading settings
isInitialized = true
if (announcedLogin == false) then
print(chat.header(addon.name)..'-Initializing- Type /xp or /xivparty to open config');
announcedLogin = true;
end
end
end

Expand Down

0 comments on commit 95ea87b

Please sign in to comment.