Blender SVN: New Features #273
@ -528,6 +528,17 @@ class SVN_OT_cleanup(SVN_Operator, Operator):
|
|||||||
return {"FINISHED"}
|
return {"FINISHED"}
|
||||||
|
|
||||||
|
|
||||||
|
class SVN_OT_cancel_running_operation(Operator):
|
||||||
|
bl_idname = "svn.cancel"
|
||||||
|
bl_label = "SVN Cancel Operation"
|
||||||
|
bl_description = "Cancel the running operation"
|
||||||
|
bl_options = {'INTERNAL'}
|
||||||
|
|
||||||
|
def execute(self, context):
|
||||||
|
Processes.kill('Commit')
|
||||||
|
Processes.kill('Update')
|
||||||
|
return {'FINISHED'}
|
||||||
|
|
||||||
registry = [
|
registry = [
|
||||||
SVN_OT_update_single,
|
SVN_OT_update_single,
|
||||||
SVN_OT_revert_and_update,
|
SVN_OT_revert_and_update,
|
||||||
@ -541,4 +552,5 @@ registry = [
|
|||||||
SVN_OT_resolve_conflict,
|
SVN_OT_resolve_conflict,
|
||||||
SVN_OT_set_directory_depth,
|
SVN_OT_set_directory_depth,
|
||||||
SVN_OT_cleanup,
|
SVN_OT_cleanup,
|
||||||
|
SVN_OT_cancel_running_operation,
|
||||||
]
|
]
|
||||||
|
@ -227,6 +227,9 @@ def draw_file_list(context, layout):
|
|||||||
if not prefs.do_auto_updates:
|
if not prefs.do_auto_updates:
|
||||||
col.operator("svn.update_all", icon='IMPORT', text="").revision = 0
|
col.operator("svn.update_all", icon='IMPORT', text="").revision = 0
|
||||||
|
|
||||||
|
if prefs.is_busy:
|
||||||
|
col.operator('svn.cancel', text="", icon="X")
|
||||||
|
|
||||||
col.separator()
|
col.separator()
|
||||||
col.operator("svn.cleanup", icon='BRUSH_DATA', text="")
|
col.operator("svn.cleanup", icon='BRUSH_DATA', text="")
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user