From 8ba05409e0540099e455d62ac0bcaff56d4d001d Mon Sep 17 00:00:00 2001 From: Ryan Holmes Date: Sun, 24 Mar 2019 07:21:43 -0400 Subject: [PATCH] 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 2b817c5d225aca62879436ba075b83396c7bc6f9. --- gui/contextMenu.py | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/gui/contextMenu.py b/gui/contextMenu.py index cf6cea49a..ec9048429 100644 --- a/gui/contextMenu.py +++ b/gui/contextMenu.py @@ -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)