Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allow custom widget options icon #4314

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion LuaUI/Widgets/gui_epicmenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1285,7 +1285,11 @@ local function IntegrateWidget(w, addoptions, index)

local wname = w.whInfo.name
local defaultpath = w.options_path or ('Settings/Misc/' .. wname)


-- add the widget's icon to the subMenuIcons table if there isn't one in that spot already
if w.whInfo.icon and not confdata.subMenuIcons[defaultpath] then
confdata.subMenuIcons[defaultpath] = w.whInfo.icon
end

--[[
--If a widget disables itself in widget:Initialize it will run the removewidget before the insertwidget is complete. this fix doesn't work
Expand Down