Skip to content

Commit

Permalink
Improve Updater UI Integration
Browse files Browse the repository at this point in the history
  • Loading branch information
ndee85 committed Jan 25, 2018
1 parent c66bd7c commit 179bb91
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Blender/coa_tools/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,13 @@ class CutoutAnimationInfo(bpy.types.Panel):

@classmethod
def poll(cls, context):
if not addon_updater_ops.updater.auto_reload_post_update or get_addon_prefs(context).show_donate_icon:
ignore_update = addon_updater_ops.updater.json["ignore"] if "ignore" in addon_updater_ops.updater.json else False
if (addon_updater_ops.updater.update_ready and not ignore_update) or get_addon_prefs(context).show_donate_icon:
return context


def draw(self, context):
addon_updater_ops.check_for_update_background()
#addon_updater_ops.check_for_update_background()

layout = self.layout

Expand Down Expand Up @@ -366,6 +367,7 @@ def change_direction(self,context):
bpy.types.WindowManager.coa_running_modal = BoolProperty(default=False)

def draw(self, context):
addon_updater_ops.check_for_update_background()

layout = self.layout
obj = context.active_object
Expand Down

0 comments on commit 179bb91

Please sign in to comment.