nvm, it doesn't

Revert "Allow platforms that can use a checked image to use one, otherwise this should fallback to plain check (for GTK)"

This reverts commit 2b817c5d22.
This commit is contained in:
Ryan Holmes
2019-03-24 07:21:43 -04:00
parent 2b817c5d22
commit 8ba05409e0

View File

@@ -20,7 +20,6 @@
# noinspection PyPackageRequirements
import wx
from logbook import Logger
from gui.bitmap_loader import BitmapLoader
pyfalog = Logger(__name__)
@@ -81,12 +80,7 @@ class ContextMenu(object):
for it, text in enumerate(texts):
id = cls.nextID()
check = m.checked
if check is not None:
rootItem = wx.MenuItem(rootMenu, id, text, kind=wx.ITEM_CHECK)
rootItem.SetBitmap(BitmapLoader.getBitmap("state_active_small", "gui"))
else:
rootItem = wx.MenuItem(rootMenu, id, text, kind=wx.ITEM_NORMAL)
rootItem = wx.MenuItem(rootMenu, id, text, kind=wx.ITEM_NORMAL if m.checked is None else wx.ITEM_CHECK)
rootMenu.info[id] = (m, fullContext, it)
sub = m.getSubMenu(srcContext, selection, rootMenu, it, rootItem)