非同期化・unused削除
This commit is contained in:
@@ -29,7 +29,6 @@ class SEQUENCER_OT_clear_mask_cache(Operator):
|
||||
|
||||
def execute(self, context):
|
||||
total_size = 0
|
||||
cleared_count = 0
|
||||
|
||||
if self.all_strips:
|
||||
# Clear all cache directories
|
||||
@@ -48,7 +47,6 @@ class SEQUENCER_OT_clear_mask_cache(Operator):
|
||||
# Delete cache directory
|
||||
try:
|
||||
shutil.rmtree(cache_root)
|
||||
cleared_count = len(os.listdir(cache_root)) if os.path.exists(cache_root) else 0
|
||||
self.report({'INFO'}, f"Cleared all cache ({self._format_size(total_size)})")
|
||||
except Exception as e:
|
||||
self.report({'ERROR'}, f"Failed to clear cache: {e}")
|
||||
|
||||
Reference in New Issue
Block a user