def METHOD_NAME(self, client_class, client_title):
    loaded_icon = False
    if client_class and client_title:
        try:
            update_image_fallback_desktop(self.icon,
                                          client_class,
                                          self.settings["image-size"],
                                          self.icons_path,
                                          fallback=False)
            loaded_icon = True
            if not self.icon.get_visible():
                self.icon.show()
        except:
            pass
    else:
        self.icon.hide()
    if not loaded_icon and self.icon.get_visible():
        self.icon.hide()