fix: auto-updater operator registration for blender 2.93 compatibility
This commit is contained in:
@ -122,13 +122,13 @@ class addon_updater_install_popup(bpy.types.Operator):
|
|||||||
# if true, run clean install - ie remove all files before adding new
|
# if true, run clean install - ie remove all files before adding new
|
||||||
# equivalent to deleting the addon and reinstalling, except the
|
# equivalent to deleting the addon and reinstalling, except the
|
||||||
# updater folder/backup folder remains
|
# updater folder/backup folder remains
|
||||||
clean_install = bpy.props.BoolProperty(
|
clean_install: bpy.props.BoolProperty(
|
||||||
name="Clean install",
|
name="Clean install",
|
||||||
description="If enabled, completely clear the addon's folder before installing new update, creating a fresh install",
|
description="If enabled, completely clear the addon's folder before installing new update, creating a fresh install",
|
||||||
default=False,
|
default=False,
|
||||||
options={'HIDDEN'}
|
options={'HIDDEN'}
|
||||||
)
|
)
|
||||||
ignore_enum = bpy.props.EnumProperty(
|
ignore_enum: bpy.props.EnumProperty(
|
||||||
name="Process update",
|
name="Process update",
|
||||||
description="Decide to install, ignore, or defer new addon update",
|
description="Decide to install, ignore, or defer new addon update",
|
||||||
items=[
|
items=[
|
||||||
@ -264,7 +264,7 @@ class addon_updater_update_now(bpy.types.Operator):
|
|||||||
# if true, run clean install - ie remove all files before adding new
|
# if true, run clean install - ie remove all files before adding new
|
||||||
# equivalent to deleting the addon and reinstalling, except the
|
# equivalent to deleting the addon and reinstalling, except the
|
||||||
# updater folder/backup folder remains
|
# updater folder/backup folder remains
|
||||||
clean_install = bpy.props.BoolProperty(
|
clean_install: bpy.props.BoolProperty(
|
||||||
name="Clean install",
|
name="Clean install",
|
||||||
description="If enabled, completely clear the addon's folder before installing new update, creating a fresh install",
|
description="If enabled, completely clear the addon's folder before installing new update, creating a fresh install",
|
||||||
default=False,
|
default=False,
|
||||||
@ -332,7 +332,7 @@ class addon_updater_update_target(bpy.types.Operator):
|
|||||||
i+=1
|
i+=1
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
target = bpy.props.EnumProperty(
|
target: bpy.props.EnumProperty(
|
||||||
name="Target version to install",
|
name="Target version to install",
|
||||||
description="Select the version to install",
|
description="Select the version to install",
|
||||||
items=target_version
|
items=target_version
|
||||||
@ -341,7 +341,7 @@ class addon_updater_update_target(bpy.types.Operator):
|
|||||||
# if true, run clean install - ie remove all files before adding new
|
# if true, run clean install - ie remove all files before adding new
|
||||||
# equivalent to deleting the addon and reinstalling, except the
|
# equivalent to deleting the addon and reinstalling, except the
|
||||||
# updater folder/backup folder remains
|
# updater folder/backup folder remains
|
||||||
clean_install = bpy.props.BoolProperty(
|
clean_install: bpy.props.BoolProperty(
|
||||||
name="Clean install",
|
name="Clean install",
|
||||||
description="If enabled, completely clear the addon's folder before installing new update, creating a fresh install",
|
description="If enabled, completely clear the addon's folder before installing new update, creating a fresh install",
|
||||||
default=False,
|
default=False,
|
||||||
@ -399,7 +399,7 @@ class addon_updater_install_manually(bpy.types.Operator):
|
|||||||
bl_description = "Proceed to manually install update"
|
bl_description = "Proceed to manually install update"
|
||||||
bl_options = {'REGISTER', 'INTERNAL'}
|
bl_options = {'REGISTER', 'INTERNAL'}
|
||||||
|
|
||||||
error = bpy.props.StringProperty(
|
error: bpy.props.StringProperty(
|
||||||
name="Error Occurred",
|
name="Error Occurred",
|
||||||
default="",
|
default="",
|
||||||
options={'HIDDEN'}
|
options={'HIDDEN'}
|
||||||
@ -461,7 +461,7 @@ class addon_updater_updated_successful(bpy.types.Operator):
|
|||||||
bl_description = "Update installation response"
|
bl_description = "Update installation response"
|
||||||
bl_options = {'REGISTER', 'INTERNAL', 'UNDO'}
|
bl_options = {'REGISTER', 'INTERNAL', 'UNDO'}
|
||||||
|
|
||||||
error = bpy.props.StringProperty(
|
error: bpy.props.StringProperty(
|
||||||
name="Error Occurred",
|
name="Error Occurred",
|
||||||
default="",
|
default="",
|
||||||
options={'HIDDEN'}
|
options={'HIDDEN'}
|
||||||
|
Reference in New Issue
Block a user