@ -53,84 +50,13 @@ This allows selecting which to show or hide.]]),
returnvalue~=0
returnvalue~=0
end,
end,
sub_item_table={
sub_item_table={
{
genMenuItem(Notification.SOURCE_BOTTOM_MENU_ICON,_("From bottom menu icons")),
text=_("Some notifications from bottom menu"),
genMenuItem(Notification.SOURCE_BOTTOM_MENU_TOGGLE,_("From bottom menu toggles")),
help_text=_("Show notification popups for bottom menu settings with no visual feedback."),
genMenuItem(Notification.SOURCE_BOTTOM_MENU_FINE,_("From bottom menu \u{00b1} buttons")),-- Poor man's +/- w/ \u{207a}\u{2044}\u{208b} doesn't look too great because subscript minus sits on the baseline in most fonts...
checked_func=someEnabled,
genMenuItem(Notification.SOURCE_BOTTOM_MENU_MORE,_("From bottom menu \u{22ee} buttons")),-- vertical ellipsis
callback=function()
genMenuItem(Notification.SOURCE_BOTTOM_MENU_PROGRESS,_("From bottom menu progress bars")),
ifsomeEnabled()then
genMenuItem(Notification.SOURCE_DISPATCHER,_("From gestures and profiles")),
-- Can't have more without some, so disable more in full
genMenuItem(Notification.SOURCE_OTHER,_("From all other sources"),nil,true),
setMask(
band(getMask(),bnot(Notification.SOURCE_MORE)))
else
setMask(
bor(getMask(),Notification.SOURCE_SOME))
end
end,
},
{
text=_("More notifications from bottom menu"),
help_text=_("Show notification popups for more bottom menu settings."),
checked_func=moreEnabled,
callback=function()
ifmoreEnabled()then
-- We *can* keep some without more, so only disable the diff between the two
setMask(
band(getMask(),bnot(SOURCE_MORE)))
else
-- But do enable the full set
setMask(
bor(getMask(),Notification.SOURCE_MORE))
end
end,
},
{
text=_("Notifications from miscellaneous sources"),
help_text=_("Show notification popups for even more bottom menu settings, as well as standalone & misc notifications."),
checked_func=miscEnabled,
callback=function()
ifmiscEnabled()then
setMask(
band(getMask(),bnot(SOURCE_MISC)))
else
setMask(
bor(getMask(),SOURCE_MISC))
end
end,
},
{
text=_("Notifications from gestures and profiles"),
help_text=_("Show notification popups for changes from gestures and the profiles plugin."),