Skip to content

Commit

Permalink
removed unused menu item
Browse files Browse the repository at this point in the history
  • Loading branch information
sync-on-luma committed Oct 25, 2024
1 parent 7b89812 commit dcc5a89
Showing 1 changed file with 52 additions and 52 deletions.
104 changes: 52 additions & 52 deletions XEBPLUS/APPS/neutrinoLauncher/settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ TransparencyAlpha=0
TempX=840
TempY=32

ContextMenu_AllItems = 12
ContextMenu_AllItems = 11
ContextMenu_SelectedItem = 1
ContextMenu={};
ContextMenu[1] = {};
ContextMenu[2] = {};
ContextMenu[3] = {};
--ContextMenu[4] = {};
ContextMenu[4] = {};
ContextMenu[5] = {};
ContextMenu[6] = {};
Expand All @@ -17,19 +18,18 @@ ContextMenu[8] = {};
ContextMenu[9] = {};
ContextMenu[10] = {};
ContextMenu[11] = {};
ContextMenu[12] = {};
ContextMenu[1].Description = nSetLang[16]
ContextMenu[2].Description = nSetLang[18]
ContextMenu[3].Description = nSetLang[17]
ContextMenu[4].Description = nSetLang[30]
ContextMenu[5].Description = nSetLang[3]
ContextMenu[6].Description = nSetLang[4]
ContextMenu[7].Description = nSetLang[29]
ContextMenu[8].Description = nSetLang[5]
ContextMenu[9].Description = nSetLang[22]
ContextMenu[10].Description = nSetLang[24]
ContextMenu[11].Description = nSetLang[6]
ContextMenu[12].Description = nSetLang[33]
--ContextMenu[4].Description = nSetLang[30]
ContextMenu[4].Description = nSetLang[3]
ContextMenu[5].Description = nSetLang[4]
ContextMenu[6].Description = nSetLang[29]
ContextMenu[7].Description = nSetLang[5]
ContextMenu[8].Description = nSetLang[22]
ContextMenu[9].Description = nSetLang[24]
ContextMenu[10].Description = nSetLang[6]
ContextMenu[11].Description = nSetLang[33]

if System.doesFileExist("CFG/neutrinoLauncher/menu.cfg") then
ContextMenu_TempFile = io.open("CFG/neutrinoLauncher/menu.cfg", "r")
Expand Down Expand Up @@ -61,61 +61,61 @@ else
ContextMenu_EnableUSB = ""
ContextMenu[3].Name = "\194\172 "..nSetLang[20]
end
if string.match(Settings, "(.*)D(.*)") then
--[[if string.match(Settings, "(.*)D(.*)") then
ContextMenu_EnableUDPBD = "D"
ContextMenu[4].Name = " "..nSetLang[31]
else
ContextMenu_EnableUDPBD = ""
ContextMenu[4].Name = "\194\172 "..nSetLang[31]
end
end]]
if string.match(Settings, "(.*)1(.*)") then
ContextMenu_DisableArt = "1"
ContextMenu[5].Name = "\194\172 "..nSetLang[8]
ContextMenu[4].Name = "\194\172 "..nSetLang[8]
else
ContextMenu_DisableArt = ""
ContextMenu[5].Name = " "..nSetLang[8]
ContextMenu[4].Name = " "..nSetLang[8]
end
if string.match(Settings, "(.*)2(.*)") then
ContextMenu_DisableStatus = "2"
ContextMenu[6].Name = "\194\172 "..nSetLang[9]
ContextMenu[5].Name = "\194\172 "..nSetLang[9]
else
ContextMenu_DisableStatus = ""
ContextMenu[6].Name = " "..nSetLang[9]
ContextMenu[5].Name = " "..nSetLang[9]
end
if string.match(Settings, "(.*)7(.*)") then
ContextMenu_DisableFade = "7"
ContextMenu[7].Name = "\194\172 "..nSetLang[28]
ContextMenu[6].Name = "\194\172 "..nSetLang[28]
else
ContextMenu_DisableFade = ""
ContextMenu[7].Name = " "..nSetLang[28]
ContextMenu[6].Name = " "..nSetLang[28]
end
if string.match(Settings, "(.*)3(.*)") then
ContextMenu_DisableAnim = "3"
ContextMenu[8].Name = "\194\172 "..nSetLang[15]
ContextMenu[7].Name = "\194\172 "..nSetLang[15]
else
ContextMenu_DisableAnim = ""
ContextMenu[8].Name = " "..nSetLang[15]
ContextMenu[7].Name = " "..nSetLang[15]
end
if string.match(Settings, "(.*)4(.*)") then
ContextMenu_ShowTitleId = "4"
ContextMenu[9].Name = " "..nSetLang[25]
ContextMenu[8].Name = " "..nSetLang[25]
else
ContextMenu_ShowTitleId = ""
ContextMenu[9].Name = "\194\172 "..nSetLang[25]
ContextMenu[8].Name = "\194\172 "..nSetLang[25]
end
if string.match(Settings, "(.*)6(.*)") then
ContextMenu_ShowMedia = "6"
ContextMenu[10].Name = " "..nSetLang[27]
ContextMenu[9].Name = " "..nSetLang[27]
else
ContextMenu_ShowMedia = ""
ContextMenu[10].Name = "\194\172 "..nSetLang[27]
ContextMenu[9].Name = "\194\172 "..nSetLang[27]
end
if System.doesFileExist("mass:/XEBPLUS/CFG/neutrinoLauncher/.cache/lastart.cfg") then
ContextMenu[11].Name = nSetLang[11]
ContextMenu[10].Name = nSetLang[11]
else
ContextMenu[11].Name = nSetLang[12]
ContextMenu[10].Name = nSetLang[12]
end
ContextMenu[12].Name = nSetLang[32]
ContextMenu[11].Name = nSetLang[32]

function ContextMenu_ReadList(ListFile)
ContextMenu_TempFile = nil
Expand Down Expand Up @@ -281,69 +281,69 @@ while XEBKeepInContextMenu do
ContextMenu_EnableUSB = ""
ContextMenu[3].Name = "\194\172 "..nSetLang[20]
end
elseif ContextMenu_SelectedItem == 4 then
--[[ elseif ContextMenu_SelectedItem == 4 then
if ContextMenu_EnableUDPBD == "" then
ContextMenu_EnableUDPBD = "D"
ContextMenu[4].Name = " "..nSetLang[31]
else
ContextMenu_EnableUDPBD = ""
ContextMenu[4].Name = "\194\172 "..nSetLang[31]
end
elseif ContextMenu_SelectedItem == 5 then
end]]
elseif ContextMenu_SelectedItem == 4 then
if ContextMenu_DisableArt == "" then
ContextMenu_DisableArt = "1"
ContextMenu[5].Name = "\194\172 "..nSetLang[8]
ContextMenu[4].Name = "\194\172 "..nSetLang[8]
else
ContextMenu_DisableArt = ""
ContextMenu[5].Name = " "..nSetLang[8]
ContextMenu[4].Name = " "..nSetLang[8]
end
elseif ContextMenu_SelectedItem == 6 then
elseif ContextMenu_SelectedItem == 5 then
if ContextMenu_DisableStatus == "" then
ContextMenu_DisableStatus = "2"
ContextMenu[6].Name = "\194\172 "..nSetLang[9]
ContextMenu[5].Name = "\194\172 "..nSetLang[9]
else
ContextMenu_DisableStatus = ""
ContextMenu[6].Name = " "..nSetLang[9]
ContextMenu[5].Name = " "..nSetLang[9]
end
elseif ContextMenu_SelectedItem == 7 then
elseif ContextMenu_SelectedItem == 6 then
if ContextMenu_DisableFade == "" then
ContextMenu_DisableFade = "7"
ContextMenu[7].Name = "\194\172 "..nSetLang[28]
ContextMenu[6].Name = "\194\172 "..nSetLang[28]
else
ContextMenu_DisableFade = ""
ContextMenu[7].Name = " "..nSetLang[28]
ContextMenu[6].Name = " "..nSetLang[28]
end

elseif ContextMenu_SelectedItem == 8 then
elseif ContextMenu_SelectedItem == 7 then
if ContextMenu_DisableAnim == "" then
ContextMenu_DisableAnim = "3"
ContextMenu[8].Name = "\194\172 "..nSetLang[15]
ContextMenu[7].Name = "\194\172 "..nSetLang[15]
else
ContextMenu_DisableAnim = ""
ContextMenu[8].Name = " "..nSetLang[15]
ContextMenu[7].Name = " "..nSetLang[15]
end
elseif ContextMenu_SelectedItem == 9 then
elseif ContextMenu_SelectedItem == 8 then
if ContextMenu_ShowTitleId == "" then
ContextMenu_ShowTitleId = "4"
ContextMenu[9].Name = " "..nSetLang[25]
ContextMenu[8].Name = " "..nSetLang[25]
else
ContextMenu_ShowTitleId = ""
ContextMenu[9].Name = "\194\172 "..nSetLang[25]
ContextMenu[8].Name = "\194\172 "..nSetLang[25]
end
elseif ContextMenu_SelectedItem == 10 then
elseif ContextMenu_SelectedItem == 9 then
if ContextMenu_ShowMedia == "" then
ContextMenu_ShowMedia = "6"
ContextMenu[10].Name = " "..nSetLang[27]
ContextMenu[9].Name = " "..nSetLang[27]
else
ContextMenu_ShowMedia = ""
ContextMenu[10].Name = "\194\172 "..nSetLang[27]
ContextMenu[9].Name = "\194\172 "..nSetLang[27]
end
elseif ContextMenu_SelectedItem == 11 then
elseif ContextMenu_SelectedItem == 10 then
if System.doesFileExist("mass:/XEBPLUS/CFG/neutrinoLauncher/.cache/lastart.cfg") then
System.removeFile("mass:/XEBPLUS/CFG/neutrinoLauncher/.cache/lastart.cfg")
ContextMenu[11].Name = nSetLang[12]
ContextMenu[10].Name = nSetLang[12]
end
elseif ContextMenu_SelectedItem == 12 then
elseif ContextMenu_SelectedItem == 11 then
ContextMenu_CleanCache()
end
end
Expand All @@ -369,7 +369,7 @@ ContextMenu_NewSettings = ""
ContextMenu_NewSettings = ContextMenu_EnableHDD
ContextMenu_NewSettings = ContextMenu_NewSettings..ContextMenu_EnableUSB
ContextMenu_NewSettings = ContextMenu_NewSettings..ContextMenu_EnableMX4
ContextMenu_NewSettings = ContextMenu_NewSettings..ContextMenu_EnableUDPBD
--ContextMenu_NewSettings = ContextMenu_NewSettings..ContextMenu_EnableUDPBD
ContextMenu_NewSettings = ContextMenu_NewSettings..ContextMenu_DisableArt
ContextMenu_NewSettings = ContextMenu_NewSettings..ContextMenu_DisableStatus
ContextMenu_NewSettings = ContextMenu_NewSettings..ContextMenu_DisableFade
Expand Down

0 comments on commit dcc5a89

Please sign in to comment.