Applet: Fix changing the icon to a symbolic icon

This commit is contained in:
Clement Lefebvre 2019-09-27 13:52:16 +01:00
parent 01ae4b0f74
commit 74bdad23cf

View File

@ -474,7 +474,6 @@ class MenuWin(object):
applet_icon = self.settings.get_string("applet-icon")
if not (os.path.exists(applet_icon) or self.icon_theme.has_icon(applet_icon)):
self.settings.reset("applet-icon")
applet_icon = self.settings.get_string("applet-icon")
self.scale = self.button_icon.get_scale_factor()
self.symbolic = False
self.pixbuf = None
@ -546,7 +545,6 @@ class MenuWin(object):
def updateButton(self):
self.systemlabel.set_text(self.buttonText)
self.button_icon.clear()
self.set_applet_icon()
self.sizeButton()