fix minimap button

now it will properly remember at which page user has stopped and will remain like that even after relog.
This commit is contained in:
Sattva
2023-05-21 00:27:44 +03:00
parent c7c813ed8b
commit 53ef641cc0
2 changed files with 44 additions and 11 deletions
+9 -11
View File
@@ -8150,17 +8150,15 @@
if InterfaceOptionsFrame:IsShown() or VideoOptionsFrame:IsShown() then return end
if arg1 == "LeftButton" then
if LeaPlusLC["PageF"]:IsShown() then
LeaPlusLC:HideFrames();
else
LeaPlusLC:HideFrames();
LeaPlusLC["PageF"]:Show();
end
if LeaPlusLC["Page"..LeaPlusLC["LeaStartPage"]] and LeaPlusLC["OpenPlusAtHome"] == "Off" then
LeaPlusLC["Page"..LeaPlusLC["LeaStartPage"]]:Show()
else
LeaPlusLC["Page0"]:Show();
end
-- No modifier key toggles the options panel
if LeaPlusLC:IsPlusShowing() then
LeaPlusLC:HideFrames()
LeaPlusLC:HideConfigPanels()
else
LeaPlusLC:HideFrames()
LeaPlusLC["PageF"]:Show()
end
LeaPlusLC["Page" .. LeaPlusLC["LeaStartPage"]]:Show()
end
if arg1 == "RightButton" then
ReloadUI();