Skip to content

Commit 09a3612

Browse files
authored
Resolve an issue that could cause the main menu to not show on ESC (fixes #73)
1 parent 84a8002 commit 09a3612

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

modules/autoPurchaseGenericTalents.lua

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ local Module = Main:NewModule('Skyriding Auto Purchaser', 'AceEvent-3.0');
4343

4444
function Module:OnInitialize()
4545
IS_LEMIX = PlayerGetTimerunningSeasonID() == LEMIX_SEASON_ID;
46+
RunNextFrame(function() IS_LEMIX = PlayerGetTimerunningSeasonID() == LEMIX_SEASON_ID; end);
4647

4748
--- @type table<number, number> # [specID] = lemixConfigID
4849
self.lemixConfigIDBySpecID = {};
@@ -226,7 +227,6 @@ function Module:GetOptions(defaultOptionsTable, db)
226227
},
227228
rideAlong = {
228229
type = 'select',
229-
style = 'radio',
230230
name = L['Auto Ride Along'],
231231
desc = L['Automatically enable/disable Ride Along the first time you log in on a character.'],
232232
values = {
@@ -247,11 +247,9 @@ function Module:GetOptions(defaultOptionsTable, db)
247247
self.db.rideAlongCache = {};
248248
self:DefferPurchase();
249249
end,
250-
width = 'double',
251250
},
252251
surge = {
253252
type = 'select',
254-
style = 'radio',
255253
name = L['Auto Surge Choice'],
256254
desc = L['Automatically pick Whirling Surge/Lightning Surge the first time you log in on a character.'],
257255
values = function()
@@ -274,7 +272,6 @@ function Module:GetOptions(defaultOptionsTable, db)
274272
self.db.surgeCache = {};
275273
self:DefferPurchase();
276274
end,
277-
width = 'double',
278275
},
279276
},
280277
};
@@ -301,8 +298,8 @@ function Module:GetOptions(defaultOptionsTable, db)
301298
},
302299
openUI = {
303300
type = 'execute',
304-
name = L['Toggle Artifact Traits UI'],
305-
desc = L['Toggle the Legion Remix Artifact traits UI to view and adjust talents.'],
301+
name = L['Open Artifact Traits UI'],
302+
desc = L['Open the Legion Remix Artifact traits UI to view and adjust talents.'],
306303
order = increment(),
307304
func = function() SocketInventoryItem(16); end,
308305
disabled = not isLemixLoaded,
@@ -442,7 +439,9 @@ function Module:GetLemixConfigID()
442439
SocketInventoryItem(16);
443440

444441
self.lemixConfigIDBySpecID[specID] = RemixArtifactFrame:GetConfigID();
445-
RemixArtifactFrame:SetShown(shown);
442+
if not shown then
443+
HideUIPanel(RemixArtifactFrame);
444+
end
446445
end
447446

448447
return self.lemixConfigIDBySpecID[specID];

0 commit comments

Comments
 (0)